In Flow Designer, how can I get the current login user?

JLeong
Mega Sage

Hi Guys,

In Flow Designer, what is the command/syntax to get the current login user?

Thank you!

 

1 ACCEPTED SOLUTION

Community Alums
Not applicable

HI JLeong,

        Sorry my bad use this :

               outputs.result = gs.getUserID(); //getUserID() is a function.

find_real_file.png

Please Mark as correct or helpful if my solution help you to solve your query.

 

Regards,

Meghnath

View solution in original post

16 REPLIES 16

Community Alums
Not applicable

HI JLeong,

        Sorry my bad use this :

               outputs.result = gs.getUserID(); //getUserID() is a function.

find_real_file.png

Please Mark as correct or helpful if my solution help you to solve your query.

 

Regards,

Meghnath

Hi Meghnath!

You were right!!!

It worked this time but the result is "system" not the logged in user.

Thanks again!!!

 

Regards,

Jocelyn

 

Need to change the "Run As". So it will return the user's sys ID

find_real_file.png

I am getting the UserID displayed versus the name; I remember seeing documentation for this but I cannot remember where.  Getting the UserID is display as "My name is E3fa1tkus..." VERSUS "My Name is Edward".  I want to display the actual user's first and last name if possible? 

Hi ELAdrich,

gs.getUserDisplayName(); should work in that case.