On-demand flows are triggered by REST API calls. For example, create an automation to
send your customer an SMS message that triggers after a user signs up for a membership program,
or after the user clicks a button on your site.
Required Editions
Available in: Lightning Experience
This feature is available in Enterprise and Unlimited Editions with
Marketing Cloud Growth or Advanced Edition.
On-Demand Flows enable developers to integrate high-scale marketing flows into external systems via API calls. Marketing admins maintain control of flow logic and messaging while developers handle the integration. This approach allows you to create personalized customer experiences that respond to real-time events from your external systems.
To trigger the flow, use a REST call with the standard Salesforce
invocable action endpoint for the flow. For example, to trigger a flow named FLOW_API_NAME,
use
this.
POST /services/data/v65.0/actions/custom/flow/FLOW_API_NAME
Before
triggering the flow, you can use a REST call to get a description of the flow and see all of
the possible inputs available for the flow to invoke it. For example, to get the flow
description and inputs for a flow named FLOW_API_NAME, use
this.
GET /services/data/v65.0/actions/custom/flow/FLOW_API_NAME
Inputs
Input values vary according to the input variables specified in the flow. EmailAddress,
IndividualId, and TelephoneNumber are always available as input.
Input
Description
Required?
EmailAddress
The contact point email address for the individual.
No
IndividualId
The ID for the individual DMO.
Yes
TelephoneNumber
The contact point phone number for the individual.
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.