Overview
In Etlworks, you can define a reusable payload template with tokens, which will be dynamically replaced with actual values at runtime.
Process
Follow these steps to set it up:
Step 1. Define a Payload Template
When creating a connection to the web service, enter your template in the Payload field.
Use {token} syntax to define dynamic placeholders.
Example
{
"Device": "{name}",
"HostName": "{host}",
"DomainName": "{domain}",
"FullyQualifiedDomainName": "{domain_full}",
"Description": "{description}"
}
Step 2: Set Token Values
You can assign values to the tokens using any of the following methods:
- Set global variables in a Script : Define and assign values to global variables using a script.
- Database Loop Parameters : Set variables based on the results of a database query.
- File Loop Parameters : Loop through the files matching the wildcard name and set variables to file name.
- Flow variables set at the flow level : Set specific variables within the flow configuration.
- Variables set when executing flow manually : When running a flow manually, variables can be entered directly before the flow starts.
- Variables set when configuring the schedule : When setting up a scheduled flow, variables can be defined as part of the schedule configuration.
- Variables set when configuring the flow to be executed by Integration Agent : If the flow is executed by an Integration Agent, variables can be set in the agent’s flow configuration.
- URL parameters in call-flow-by-name API :Pass variables through URL parameters when triggering a flow by name.
- Payload in call-flow-by-ID API : Provide variables via the payload when triggering a flow by ID.
- User-defined API URL parameters : Use parameters defined in your custom API endpoints.
- HTTP Preprocessor : Set variables dynamically using an HTTP preprocessor script.
Comments
0 comments
Please sign in to leave a comment.