and more in a single search tool across platforms. Read the announcement here. |
04/12/2022 01:08 PM
I would like to assign a request to user's secondary manager in an approval workflow. I have tried to do it by using following custom query in custom assignment:
select distinct m.userkey as userkey from users u join users m on u.secondaryManager = m.userkey where u.userkey = '${user.userkey}'
But request is not assigned to the secondary manager. How can I get it to be assigned to the user's secondary manager?
Solved! Go to Solution.
04/12/2022 02:26 PM
Try without the quotes.. Something like this,
select distinct m.userkey as userkey from users u join users m on u.secondaryManager = m.userkey where u.userkey = ${user.userkey}
04/12/2022 02:26 PM
Correct query is :
select distinct SECONDARYMANAGER as userkey from users u where u.userkey = ${user.id}
04/12/2022 02:26 PM
Thank you, that worked.