Compare if current user belongs to a particular role



I have a requirement which should branch out for approval process based on the current user's role. If the user belongs to Marketing then the Marketing approval should get triggered and if the user belongs to Sales then Sales approval should get trigged.


I am trying to use the System administration object to lookup for the role, however, I am not able to compare if the user belongs to that role.


How to go about it.


Thanks in advance.


Like 0



This article will show you how to do this with an ESQ:…

If you'e wanting to do this in a process, you'd basically need to check the SysUserInRole to see if the user is in a given role where the user column contains the user and the role column contains the role - if a row exists the user is in the role.


Show all comments