Create a Process to Call a Flow

Create a process that calls your notification flow when your platform event occurs.

  1. From Setup, in the Quick Find Box, enter Process Automation, and select Process Builder.

  2. Click New.

  3. Fill in the New Process form.

    1. For Process Name, enter Notify On Checkout Intermediate Notification Event.

    2. For API Name, enter Notify_On_Checkout_Intermediate_Notification_Event.

    3. For when to start the process, select A platform event message is received.

  4. Click Save.

  5. After Process Builder launches, click Add Trigger.

    1. For Platform Event, select Checkout Intermediate Notification.

    2. For Object, select Cart Checkout Session.

    3. Provide matching conditions.

      1. Under Field, select Cart Checkout Session ID.
      2. For Operator, select Equals.
      3. For Type, select Event Reference.
      4. Under Value, select Cart Session ID.
    4. Click Save.

  6. Click Add Criteria.

    1. For Criteria Name, enter Checkout Intermediate Operation Criteria.

    2. For Criteria for Executing Actions, select Conditions are Met.

    3. Create five conditions with this criteria.

      SourcePlatform EventPlatform EventPlatform EventPlatform EventPlatform Event
      FieldStateStateStateStateNext State
      OperatorEqualsEqualsEqualsEqualsIs Null
      ValueConfirm PriceShipping CostTaxesCheckout SummaryTrue
  7. For Conditions, select Customize the Logic.

  8. For Logic, select (1 OR 2 OR 3 OR 4) AND 5.

  9. Click Save.

  10. Select + Add Action.

  11. Fill in the New Action form.

    1. For Action Type, select Flows.

    2. For Action Name, enter Trigger intermediate checkout notification.

    3. For Flow, select the flow that you created in the Bell notifications step.

  12. Save and activate your process.