+ Start a Discussion
tkee31tkee31 

Is there a way to populate a Flow variable from a URL parameter?

Hi,

I'm using Force.com Flow, the new function available in Spring '11. Is there a way to populate a Flow variable from a URL parameter?

I'd like to create a custom link on the Account detail page that will launch a Flow and pass the Account ID to the Flow as a parameter. I've read through the Flow documentation and searched the message boards but I haven't found an example. Thanks for any help.

Best Answer chosen by Admin (Salesforce Developers) 
RajaramRajaram

Yes. You can use the standard URL parameter passing mechanism. So in your use assuming you are launching the flow from a custom button or link on an account object, you can use the following:

/flow/myAccountFlow?vaAccountID={!Account.Id}&vaAccountName={!Account.Name}

where vaAccountID and vaAccountName are Flow variables.

 

Hope this helps..

All Answers

RajaramRajaram

Yes. You can use the standard URL parameter passing mechanism. So in your use assuming you are launching the flow from a custom button or link on an account object, you can use the following:

/flow/myAccountFlow?vaAccountID={!Account.Id}&vaAccountName={!Account.Name}

where vaAccountID and vaAccountName are Flow variables.

 

Hope this helps..

This was selected as the best answer
tkee31tkee31

Thanks!

anshuanshu

i have a flow in VF page at finish point i want to get value of variable which is in flow.