Questions and discussion about using ProcessMaker: user interface, running cases & functionality

Moderators: ArturoRobles, ArturoRobles

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://www.youtube.com/channel/UCYiyz1 ... 1iw/videos
https://www.linkedin.com/in/pmlearning/
Thanks
disable value in dropdown

Check box is more helpful rather than drop down op[…]

Timeout Not Sending Email

I would like to thank you for the efforts you have[…]

use 'insert into' in a trigger

Is your syntax correct? Shouldn't you be using s[…]

issue with processmaker 3.2

You mean the code in the trigger below? That is t[…]