Sunday, 3 February 2013

Passing parameters or values to flow variables

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.

4 comments:

  1. 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 :(

    ReplyDelete
  2. Hi Daniel,

    You cannot auto populate values on flow elements.You can pass multiple values to flow variable you define in flow.

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete

Best Practices for Building Prompt Templates

 Hi, The following best practices should be considered when building prompt templates: Make sure that your prompt templates are concise and ...