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:

  1. In your Salesforce organization, navigate to Setup.
  2. In the Quick Find box, type flows.
  3. Click Flows, and then click New Flow.
  4. Click Use a Template, and then click Next.
  5. In the Search All Templates box, type amazon.
  6. Click the Associate New Order with Amazon Sales Channel flow template, and then click Create.

(Optional) Configure the Start element

To configure the Start element to specify when and how to trigger the flow, do the following:

  1. In your flow, click the Start element, and then click Edit.
  2. If you're using a custom object, update the Object field with the custom object name.
  3. 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:

  1. Click the Determine Amazon Sales Channel decision element, and then click Edit Element.
  2. For each Amazon sales channel in your OMS, add an outcome that corresponds to the sales channel.
  3. For each outcome, enter a Label representing the sales channel name and an Outcome API name.
  4. 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.

  1. Click the assignment element you want to configure, and then click Edit Element.
  2. In the Set Variable Values section, set Variable to AmazonSalesChannelTargetId.
  3. In the Operator box, click Equals.
  4. 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:

  1. Click Save.
  2. Enter a Flow Label, a unique Flow API name, and a description of the flow.
  3. Click Save to confirm your changes.
  4. Click Activate.

Related topics

Configure the Salesforce OMS Package for Buy with Prime.