Step By Step Guide to Calling Flow From an API

Step By Step Guide to Calling Flow From an API

A Flow can be invoked from multiple places. You can invoke it from a button, embed it on your pages, invoke it when DML operations are performed, schedule to run it or even invoke it through REST API call.

In this step-by-step guide, you will learn how to call a Flow from an API, how to pass parameters to the Flow and how Flow will return the values back to the API

Liked this guide? Want to download this presentation as a PDF or watch training videos? We are now offering a complete course (self-paced) on Mastering Salesforce Flows. For more details and free preview please click here.

References & Useful URLs:

2 thoughts on “Step By Step Guide to Calling Flow From an API”

  1. Hello Ashish, thank you for this guide.

    I’m able to test a custom, auto launched flow from Workbench like on this guide.

    However, trying to call the endpoint from a Python script gets me a JSON object describing the Flow: “{“allowsTransactionControl”:false,”category”:null,”configurationEditor”:null,”description”….}

    Have you encountered a similar issue, or are Flow APIs only callable from inside Workbench?

    1. Hi Sergio,

      The Flow APIs can be called from anywhere. It is not restricted to Workbench. I am not familiar with Python, but can you try if you are able to make other API calls to the same Salesforce org with the same user credentials and and getting a proper response. If you can run it from Workbench, it should work fine from other places also.


Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top