The Update binary content task updates file content by creating a new version of an existing content object.
A binary content object represents the contents of a file rather than a folder. As a result, this task cannot be used to update folder contents. Use this task when you need to replace or update the contents of an existing file while preserving it as a versioned repository object.
During execution the task executes the UPDATE_BINARY_CONTENT action. The task retrieves the source content, JSON content, or text content specified as the update source. The binary content of the target file is updated and a new version of the target content object is created. The updated content object is returned for use in subsequent workflow activities.
The input parameters of the task are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| sourceContent | content | Requires one input source | Reference to the content object containing the new binary content to attach to the target content. |
| sourceJSON | JSON | Source of new binary content provided in JSON format. | |
| sourceText | string | Source of new binary content provided as a block of text. | |
| targetContent | content | Requires one target | Reference to the content object whose binary content will be updated. |
The output parameters of the task are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| content | Content | Optional | The resulting content object after the binary content has been updated. |