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

Flows, how to set up global constant

Hi all,

I am creating a flow that would create a record - case. On case, there is a lookup field Creator that looks up Users, how can I preset that in flow  as such that it takes the user who runs the flow? And pick up the contract that started the flow?
Intended that flow starts when Contract is set to activated.

Gaurav HandooGaurav Handoo
Hi Ilv

I believe it is safe to assume that whenever Contract is set to active, a Process Builder is being used to invoke a flow to achieve this; you can create a formula

Assign this to a variable or directly bind to the field you want to populate this value to. Also, if the assumption of invoking the Flow via Process Builder, you can create an input variable to accept whatever inputs you require from the contract itself (including the Contract Id).

Hope this helps.