Configuring inputs for an automation
Define specific inputs in an automation rule to create a contract so that users understand how to use your API. The inputs define the data that the system expects to receive from an external application.
- 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 Inputs section, in the Name field, enter a name for the input.
- Optional: Edit the name in the ID field.
- In the Description field, enter a description of the input parameter.
- In the Data type field, select the data type of the input parameter.
- Configure the input parameter based on the data type that you selected in step
5.
Data type Configuration - Date only
- Date & time
- Time only
- Decimal
- Boolean
- Integer
- Optional: To indicate that this input is a requirement, select the check box in the Required column.
- Click the Gear icon.
- In the configuration dialog box, in the Default value field, enter a default value to use if the system cannot find a value for the input.
- Click Submit.
Text For more information on configuring text inputs, see Configuring validation for text inputs and outputs in automations. - Page
- Page List
- In the Options / Page class field, enter or select the class to which this input belongs.
- Optional: To indicate that this input is a requirement, select the check box in the Required column.
Resource Page - Optional: To add additional inputs, click Add input.
- Optional: To delete an input, click Delete.
- Click Save.
Previous topic Creating an automation Next topic Configuring outputs for an automation