Hard coding the Flow ID in Visualforce

Sometimes, you may need to hard code your Flow ID in Salesforce (for example, to embed a flow in a Chatter action). Do not make any changes to the ManyWhoFlow page. Create a clone of the page, rename it, and save the page, before hard coding the Flow ID.

Here is how to do this:

  1. Click here to login to your Salesforce org.
  2. Click Setup.
  3. Click VisualForce Pages from the Develop menu, and select the ManyWhoFlow page, where you want to hard code the Flow ID.
  4. You will hardcode the Flow ID where the ManyWho engine is being initialized. Replace the term flowID with the ID of your flow within single quotes (‘). Example: ’15c021f1-884a-4794-8f52-0035f9755063′. (Ln 161 in the picture.) This is what the code looks like:
    Once we have made the changes, this is what the code will look like:
  5. Click Save to save the page.