We need to set up the logic so when someone selects the Get Approval button (an event), we send the sales order data to our SAP Build Process Automation workflow using the trigger process.
Press the Get Approval button, and open the logic canvas by choosing Add logic to Button1 at the bottom right.

Drag a Trigger process function onto the canvas, and connect the component tap event to it.

In the logic canvas, choose on the Trigger process and then choose Custom Object.

Map the Sales Order fields to their corresponding page variable (example below for material).

| Sales Order fields | Page Variable |
|---|---|
| material | material |
| quantity | quantity |
| shipToParty | customer |
| expectedDeliveryDate | date |

For the remaining Sales Order fields, enter the following values as Static text.
| Sales Order fields | Static Text Value |
|---|---|
| soldToParty | 1000292 |
| salesOrderType | OR |
| salesOrganisation | 1710 |
| distributionChannel | 10 |

Select Save.

Drag a Toast flow function onto the canvas.

Connect the top output of the Trigger process flow function to it.

choose on the Toast flow function and configure it in the Properties pane on the right.
For Toast message, choose ABC

Select Formula > Formula.
Erase the quotation marks, and enter the following formula:
1"Triggered process with ID: " + outputs["Trigger process"].newProcessInstance.idSelect Save.

Select PAGE LAYOUT then choose Save (upper right).
