Configuring errors for an automation
Define a set of the most probable errors that your automation can return to an external application. By specifying these errors in the automation, the application consuming your API can determine how to handle each possible error scenario.
For example, for an automation for sending email, you
might configure an Invalid email account error, or an
Authentication failed error. By default, automations
are configured with an Execution error (pyExecutionError) and
Invalid inputs error (pyInvalidInputs).
- Create a new automation or open an existing automation.
Choices Actions Create a new automation Follow the steps in Creating an automation. Open an existing automation - In the navigation pane of Dev Studio, click Records.
- Expand the Technical category and click Activity.
- Locate the automation for which you want to simulate a JSON
response and click in its row.Automations have the AUTOMATION activity type.
- On the Definition tab, in the Errors section, click Add Error.
- In the Name field, enter or select an error to pass to
the external application.
Choices Actions New message - To the right of the ID field, click the rule opener.
- On the Message Record Configuration page, in the Label field, enter a name for the error message.
- In the Context section, in the Apply to field, press the Down Arrow key and select the class that defines the scope of the message rule.
- Click Create and open.
- On the Details tab, in the Classification field, select the classification to which the error belongs.
- Click Save.
Existing message - To the right of the ID field, click the rule opener.
- On the Details tab, in the Classification field, select the classification to which the error belongs.
- Click Save.
- In the Description field, enter a description of the error.
- Optional: To add additional errors, click Add Error.
- Optional: To delete an error, click Delete.
- Click Save.
Previous topic Configuring validation for text inputs and outputs in automations Next topic Simulating a response for automation outputs