Fetching role of the logged in user from an workflow

In the latest version, is there any way to search for the current user from a workflow. For example, I am triggering the workflow to approve something, now i want to have a workflow step which will check what is the role of the authenticated user that’s sending the trigger request. Is this possible?

Refer this post. Note that this user invoker ignores the “run as” workflow user and captures the user record of the user triggering the workflow.

1 Like

Thank you so much Mark, I was trying this invoker approach, and while trying to test out the workflows, I did use the run as , and it didn’t work. I was confused about that, but it makes sense now why it didn’t work because of your reply. Thanks

1 Like