Questions and discussion about using ProcessMaker: user interface, running cases & functionality
By tamersherif
#827469
Hi,
I am using Value Based Assignment to users using the example below and it works fine but is there a way to assign to group uid instead of user uid?, I tried but i got error:
Code: Select all
if (isset(@#amount) and @#amount >= 500.00) {
  @@NextUser = '089f76dfe59c13408500f0f852435ac7'; //UID of Ralph Baker
}
else {
   @@NextUser = '4b50c5a36630d3906475c945ed999051'; //UID of Amos Batto
}
User avatar
By programerboy
#827471
Hi,
You can use this code:
Code: Select all
@=NEXT_USER = [];
$your_group_id = '';
$query = '
	select USR_UID
	from GROUP_USER
	where GRP_UID = "'.$your_group_id.'"
';
$result = executeQuery($query, $db);

if(is_array($result)){
	foreach ($result as $row)
		array_push( @=NEXT_USER, $row['USR_UID'] );
}
https://pmlearning.info
Thanks
Last edited by programerboy on Tue Apr 06, 2021 5:57 am, edited 1 time in total.

A 1xbet clone script is a pre-designed software so[…]

4rabet clone script is enabling entrepreneurs to e[…]

Parimatch clone script is enabling entrepreneurs t[…]

In the world of cryptocurrency, a wallet is an app[…]