Create a Process to Call a Flow
Create a process that calls your notification flow when your platform event occurs.
-
From Setup, in the Quick Find Box, enter
Process Automation
, and select Process Builder. -
Click New.
-
Fill in the New Process form.
-
For Process Name, enter
Notify On Checkout Intermediate Notification Event
. -
For API Name, enter
Notify_On_Checkout_Intermediate_Notification_Event
. -
For when to start the process, select A platform event message is received.
-
-
Click Save.
-
After Process Builder launches, click Add Trigger.
-
For Platform Event, select Checkout Intermediate Notification.
-
For Object, select Cart Checkout Session.
-
Provide matching conditions.
- Under Field, select Cart Checkout Session ID.
- For Operator, select Equals.
- For Type, select Event Reference.
- Under Value, select Cart Session ID.
-
Click Save.
-
-
Click Add Criteria.
-
For Criteria Name, enter
Checkout Intermediate Operation Criteria
. -
For Criteria for Executing Actions, select Conditions are Met.
-
Create five conditions with this criteria.
Field One Two Three Four Five Source Platform Event Platform Event Platform Event Platform Event Platform Event Field State State State State Next State Operator Equals Equals Equals Equals Is Null Type String String String String Boolean Value Confirm Price Shipping Cost Taxes Checkout Summary True
-
-
For Conditions, select Customize the Logic.
-
For Logic, select (1 OR 2 OR 3 OR 4) AND 5.
-
Click Save.
-
Select + Add Action.
-
Fill in the New Action form.
-
For Action Type, select Flows.
-
For Action Name, enter
Trigger intermediate checkout notification
. -
For Flow, select the flow that you created in the Bell notifications step.
-
-
Save and activate your process.