cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP Build Process Automation - How to get currectUser for Approved By

Izni
Discoverer
0 Likes
216

I want to capture currentUser so that I can pass the value in Approved By. 

Currently I use "Process Started By" but the value return is system generated and it looked like a secret code instead of currentUser name. 

How can I get currentUser name to pass actual user name in Approved By field?

3.jpg4.jpg
Thanks! 

Accepted Solutions (0)

Answers (1)

Answers (1)

Johnny_B_
Active Participant
0 Likes

Hi izni,

the username you see (the secret code) is actually the global user ID of the user, who started the workflow.

It is part of IAS user setup.

IAS can be setup to have other values as Global user ID, or example the email could be used.

However it will anyway not solve your requirement, as it is the user ID of the user who started the flow, not the currently logged on user.

To get this, you must use some BTP user info API, or IAS API. I think this is tricky, haven't solved it myself yet.

Johannes