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

Mihir Patel
Tera Expert

So I have been trying this in San Diego and have not been able to accomplish anything. All I am trying to do is this:

Flow trigger is Create Record and so when the record first gets created the system automatically assigns it to the current user. I am using assigned_to field which is a reference field that points to sys_user table. I looked at using created_by but that is a string and it does not work since assigned_to is a reference. The above scripts are not working either. Any help is much appreciated TIA

Hi Mihir,

Personally, I'd just use a business rule for that. Create a business rule that triggers on before insert, and in the script field, write something like current.assigned_to = gs.getUserID();

find_real_file.png

 

find_real_file.png