You need to sign in to do that
Don't have an account?
Clive Bearman
Passing variables into flows
Is it possible to pass lead ID and context into the flow as it starts, like passing command line parameters?
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
Is it possible to pass lead ID and context into the flow as it starts, like passing command line parameters?
Yes.. Absolutely.
You can pass variables using the standard HTM url parameters.
So from the lead page you can have a link to launch a flow and pass the leadID as the following
nax.salesforce.com/flow/myLeadFlow?vaLeadID={!ID}
where vaLeadID is the unique name of the variable in flow.
Hope this helps..
All Answers
Yes.. Absolutely.
You can pass variables using the standard HTM url parameters.
So from the lead page you can have a link to launch a flow and pass the leadID as the following
nax.salesforce.com/flow/myLeadFlow?vaLeadID={!ID}
where vaLeadID is the unique name of the variable in flow.
Hope this helps..
Hi there,
Is there perhaps a website to show me how to do this? I would appreciate it!
Regards,
StadlerQuote
It would be good if this thread was labeled more extensively so it would show up in searches for things like "Visual Workflow URL Parameters" and "How to pass values to Visual Workflow" and "SalesForce Flow URL Parameter". Hopefully this Reply will help other people find the thread :)
where we should add this
nax.salesforce.com/flow/myLeadFlow?vaLeadID={!ID}
For example on a button that is on a record detail page, where you want to pass the id of the current record into the flow. When you create the custom button, select URL as the content and add the URL. (Be sure to add the button to the page layout, too).
Hi,
Does this work with TODAY() ?
I'd like to pass today's date into the variable varTODAY. I used: [understood that nax should be replaced with my org number]
https://nax.salesforce.com/flow/nameofmyflow?varTODAY=TODAY()
and it did not work. I did not use {!TODAY()} as I know that denotes a field. Please advise.
Just figured this out. No one here has mentioned that you also need to make sure the variable in FLOW has an Input/Output type of "Input Only" so that it can actually receive URL variable information. Still can't get TODAY() to work becuase of a data type error (even though my FLOW variable is a Date type). Getting closer...
http://boards.developerforce.com/t5/Visual-Workflow/Pass-today-s-date-into-a-variable-in-a-FLOW/td-p/583493