Skip to content

ExecuteActivityOptions

Options accepted by executeActivity.

A top-level key of body can be a path: { 'fields.summary': 'x' } is sent as { fields: { summary: 'x' } }. A path can address an array item (items[0].name) or every item of an array (items[*].name).

Extends

Properties

Property Type Description
body? unknown Body to send for POST/PUT/PATCH. Serialized as JSON.
bodyPartName? string Name of the form part that carries body when files is set. Defaults to body.
connectorKey? string Key of the connector behind the connection, e.g. uipath-salesforce-slack. Required on the version 4 engine. Taken from the handle when the connection is a resource.connection() handle.
connectorVersion? string Version of the connector behind the connection, e.g. 4.0.0. A connector of version 4 or later runs its activities on the version 4 engine, and the call is sent there; without a version, or with an earlier one, the call uses the version 3 engine. On the version 4 engine objectName names the activity's script, and files, bodyPartName, fileResponse, urlInputFields and maxRecords are refused with a ValidationError.
fileResponse? boolean Read a successful response as a file: body is a Uint8Array whatever content type the connector reports. Without it a file is still detected from the response headers.
files? ExecuteFile[] Files to upload. The call is sent as a multipart form with one part per file, and a non-empty body travels as a JSON part named by bodyPartName.
folderId? number Numeric folder ID.
folderKey? string Folder key (GUID-formatted string).
folderPath? string Slash-delimited folder path, e.g. 'Shared/Finance'.
headers? Record<string, string> Headers the activity's script reads from the call. Refused without a version 4 connector.
maxRecords? number How many records a GET list call should return in total. The call follows the connector's pages until it has this many records or the list ends, then returns them as one array. Pass -1 to fetch every record. Without it a single page is returned, with page on the result when more records exist. Ignored for methods other than GET.
queryParams? Record<string, string> Query string parameters.
retry? RetryOptions Retry and backoff behavior for this call. Retrying is off unless maxRetries is set. Only the idempotent methods of RFC 9110 (GET, HEAD, PUT, DELETE, OPTIONS) are retried by default — a replayed POST can create the same record twice through the connector. To retry a POST or PATCH, list it explicitly in retryMethods.
scriptRef? string Reference of the script the version 4 engine runs for this activity, as the activity's metadata names it. Defaults to objectName. Refused without a version 4 connector.
signal? AbortSignal Signal for cancelling the request, including any pending retry.
timeoutMs? number Timeout for a single attempt, in milliseconds. Applies whether or not retrying is enabled; each retry starts a fresh timeout. Unbounded by default.
urlInputFields? string[] Names of the query parameters the connector marks as accepting a URL. A listed parameter whose value is an http or https URL is sent Base64-encoded, which is the form the connector expects for such a field.