The second example showcases error handling. Invoice cancelation can only happen once per invoice. This example shows an error when we try to cancel an object that was already canceled.
Note: This Pipeline does not work for any Workday tenant since they read by WID.
Download this Pipeline
-
The mapping and the Workday Cancel Snap are configured as in the first example, except that you need to add an Error View to the Workday Cancel Snap.
-
The error view shows the following:
The error key provides the message returned from Workday ‘Invoice is not cancelable’.
The envelope key contains the information of the SOAP envelope that is populated by applying the variables from the input view into the generated SOAP envelope.
The stripped envelope key contains the information of the SOAP envelope that is sent to Workday
To reuse the example pipelines:
- Download and import the SLP file into your Environment.
- Configure Snap accounts.
- Provide Pipeline parameters, if any.