function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
MartinSlabyMartinSlaby 

Visual Workflow - How to get information about logged user in a flow

Hello,

 

is there some way how to get information about logged user which used my flow? I didn´t find any global (system) constraint for it. Standard API varible {!$User.Name} doesn´t work in a flow.

 

thank you

Martin

RobbiePRobbieP

If you are initating the Flow from a button or link, you can pass user info to a Flow variable by appending the URL. I usually pass the UserId to my Flows and use the lookup functions to get any other info I'll need.

RajaramRajaram

Thanks Robbie! 

As Robbie suggested you can use the classic http url parameters syntax to set any number of flow variables as part of the URL configuration to launch the flow.

so somthing like:

http://instance.salesforce.com/flow/myflow?vaVar1={!id}&vaVar2=whatever&vaVar3=Hello

 

etc