Click HERE to see how Saviynt Intelligence is transforming the industry. |
07/03/2024 02:31 AM
We have created a custom assignment workflow that requires approval from a user group.
However, instead of specifying a static string for the user group, we want to assign the user group based on the value in the user's 'userType', appending the string "Group" to it.
For example, if the user's 'userType' is "Sales", the user group should be "SalesGroup".
*failed query : select concat(users.userType,'Group') from users
Could you please let us know how to configure this to read the 'userType' and set "SalesGroup" as the approver?
Solved! Go to Solution.
07/03/2024 10:54 AM - edited 07/03/2024 10:56 AM
@JPMac use below query in workflow and select Customquery:
Query :
select userkey from user_groups ug join usergroup_users ugu on ugu.USER_GROUPKEY = ug.USERGROUPKEY and user_groupname=concat('${users.userType}', 'Group')
07/03/2024 05:46 PM
@Raghu Thanks for your resposne. It's working.
07/03/2024 08:19 PM
Thanks for confirmation.