Insert a File into the Workflow
POSTing to the Files Resource adds a file to the Send, Receive, or Sent folders for a particular connector. To insert a file into the workflow, POST the file to the Send folder for the first connector that should process the file. For example:Retrieve the Log File for a Specific Transaction
The getTransactionLogs Action retrieves the log file for a specific action. Invoking this Action requires knowing the MessageId for the relevant transaction. The MessageId can be found by querying the Transactions Resource first (the Transactions Resource returns metadata about the transaction, but not the transaction log file itself). The GET query to the Transactions Resource should include any filters necessary to identify the specific transaction unless the result set can be parsed by some other process to find the MessageId for the desired transaction. For example:Call Admin API from Script
You can use Script to send arc:call commands to the Admin API. Each call must start withapi.rsc/.
The following limitations apply to this feature:
- OData query syntax is not supported.
- Rate limiters are not applied.
- If the script is executed from the Admin Console directly, the user will be the currently logged-in user.
- If the script is executed by an automation service, the IP address in an audit will be 127.0.0.1.
Retrieve Connectors
The following example is an isolated arc:call command used to retrieve the connectors resource:| Component | Description |
|---|---|
| op=“api.rsc/connectors” | Sets the op (operation) parameter to call the Admin API (using api.rsc/) and retrieve the connectors resource. |
| httpmethod=“get” | Designates the command as a GET command. |
| authtoken=“6o6B3m4r3F8z6m4R3d1k” | Passes the specified token to the authtoken parameter. This can be obtained on the Settings page under the Users section. |
| out=“o” | Assigns the connector returned by the command to o. |