We can pass parameters or values to flow variables.
For example i have a flow with opportunity details.Here i am navigating to this flow from a custom detail page button on account.Here i want to pass Account Id to flow variable 'accountid' opportunity flow included in vf page.
Now construct a url in our custom button as shown below
"/apex/pagename?accountid={!Account.Id}"
then the flow included in the vf page can get the value from 'accountid' parameter to 'accountid' variable inflow.
Here we should remember one thing.
Here both url parameter name and variable name in flow should be same.
For example i have a flow with opportunity details.Here i am navigating to this flow from a custom detail page button on account.Here i want to pass Account Id to flow variable 'accountid' opportunity flow included in vf page.
Now construct a url in our custom button as shown below
"/apex/pagename?accountid={!Account.Id}"
then the flow included in the vf page can get the value from 'accountid' parameter to 'accountid' variable inflow.
Here we should remember one thing.
Here both url parameter name and variable name in flow should be same.
Can you pass multiple values via this method or one similar? I've been trying to push data from person accounts to a flow to auto populate some fields but am having no luck :(
ReplyDeleteHi Daniel,
ReplyDeleteYou cannot auto populate values on flow elements.You can pass multiple values to flow variable you define in flow.
This comment has been removed by the author.
ReplyDeleteHi Danielle,
DeleteIt is not possible.