The COPY_FILE action is used to copy a file and save it in the ACS repository.
The input parameters for COPY_FILE are:
Parameter | Type | Required | Description |
---|---|---|---|
name | String | Optional | Name of the copied node. |
sourceFile | Array<json> | Required | ACS file to be copied. If the received value contains multiple files, only the first of them will be processed. File variables are initialised by content actions or content events in triggers. |
sourceId | JSON | Optional | ACS node id of the node to be copied. For example, 775a8f2d-8123-49a7-ae1f-f3f49d4eae20. |
sourcePath | String | Optional | Path of the node to be copied. For example, /User Homes/hruser/invoices/invoice.txt. |
targetFolder | Array<json> | Optional | Folder in which to store the result copied. If the received value contains multiple references to folders, only the first of them will be used. |
targetFolderId | String | Optional | The nodeId of the folder to store the record in. For example 775a8f2d-8123-49a7-ae1f-f3f49d4eae20. |
targetFolderPath | String | Optional | Path of the folder to store the copied result. For example, /User Homes/hruser/. |
The output parameters from COPY_FILE are:
Parameter | Type | Required | Description |
---|---|---|---|
response | Array<json> | Optional | Response for the calls. |
file | Array<json> | Optional | A list of ACS nodes containing just one element corresponding to the copied file. |