Associate an Order with a Sales Channel Using Salesforce Flow Builder
Buy with Prime API is now available for early access
Sign up for early access to the Buy with Prime API using the 'Sign Up' button below. The API may change as Amazon receives feedback and iterates on it.
If you manage multiple Amazon sales channels in the Salesforce order management system (OMS), use the Salesforce Flow Builder tool to link each order to the appropriate Amazon sales channel. For details about creating a sales channel, see Add a Sales Channel in the Salesforce OMS Package for Buy with Prime. The following sections show how to create a Flow Builder flow that associates orders with Amazon sales channels.
For details about Flows and Flow Builder in the Salesforce OMS, in the Salesforce documentation see About Flows and Flow Builder.
Create a copy of the Associate New Order with Amazon Sales Channel flow template
To set up a flow that you can modify, do the following to create a copy of the Associate New Order with Amazon Sales Channel flow template:
- In your Salesforce organization, navigate to Setup.
- In the Quick Find box, type
flows
. - Choose Flows, and then choose New Flow.
- Choose Use a Template, and then choose Next.
- In the Search All Templates box, type
amazon
. - Choose the Associate New Order with Amazon Sales Channel flow template, and then choose Create.
(Optional) Configure the Start element
To configure the Start element to specify when and how to trigger the flow, do the following:
- In your flow, choose the Start element, and then choose Edit.
- If you're using a custom object, update the Object field with the custom object name.
- Set the conditions for triggering the flow.
Configure the Determine Amazon Sales Channel decision element
To configure the Determine Amazon Sales Channel decision element to specify the conditions that determine which Amazon sales channel handles an order, do the following:
- Choose the Determine Amazon Sales Channel decision element, and then choose Edit Element.
- For each Amazon sales channel in your OMS, add an outcome that corresponds to the sales channel.
- For each outcome, enter a Label representing the sales channel name and an Outcome API name.
- For each outcome, set the conditions that determine the outcome.
Configure the assignment elements
Configure the assignment elements to assign Amazon sales channels corresponding to the conditions in the decision element. For each assignment element that follows the decision element, do the following.
- Choose the assignment element you want to configure, and then choose Edit Element.
- In the Set Variable Values section, set Variable to
AmazonSalesChannelTargetId
. - In the Operator box, choose Equals.
- In the Value box, enter the appropriate Amazon sales channel.
Save and activate the flow
To make the flow available for use, do the following:
- Choose Save.
- Enter a Flow Label, a unique Flow API name, and a description of the flow.
- Choose Save to confirm your changes.
- Choose Activate.
Related topics
Updated 11 days ago