Set Flow Variables with the Flow URL
- From Setup, enter Flows in the Quick Find box, then selectFlows.
- Click the name of the flow.
- Copy the URL for the flow.
- At the end of the flow URL, append ?name=value, wherename is the unique name of the variable or collection variable in the flow that you want to set and value is the value you want to set it to. If you want to set multiple variable values, append ?name1=value1&name2=value2 to the end of the flow URL. If you want to set the values for multiple items in the same collection variable, append ?name=value1&name=value2.For example:/flow/MyFlow?varNumber=100&varString=HelloHere are the valid values for each flow variable and collection variable based on its data type.Variable TypeAcceptable ValuesBooleanMerge field of type CheckboxTrue values: true or 1False values: false or 0CurrencyMerge field of type Number or a numeric valueDateMerge field of type Date or YYYY-MM-DDDateTimeMerge field of type Date/Time or YYYY-MM-DDThh:mm:ssZMulti-Select PicklistMerge field of any type or a string in this format: value1; value2NumberMerge field of type Number or a numeric valuePicklistMerge field of any type or a stringTextMerge field of any type or a stringNote When youdistribute a flow, don’t pass a currency field value from aSalesforce record into a flow Currency variable with a URL parameter. When acurrency field is referenced through a merge field (such as {!Account.AnnualRevenue}), the valueincludes the unit of currency’s symbol (for example, $). Flow variables oftype Currency can accept only numeric values, so the flow fails at runtime.Instead, pass the record’s ID to aflow Text variable with a URL parameter. Then in the flow, use the ID tolook up that record’s value for the currency field.
- Merge field of type Checkbox
- True values: true or 1
- False values: false or 0