Action Copy document copies a single document from a source library to a target library/folder.
Example of Copy document action configuration on the current site
For more information about Action Builder read Action Builder introduction article.
To configure the action Copy document additional properties should be specified:
Configuration
| Property | Required | Type | Description |
|
Source Library |
yes | Choice |
A library where source document is located. It is possible to select:
|
| Source Item Id | yes | Integer | ID of the document to be copied or expression to be evaluated as ID of a document |
| Target Library | yes | Choice |
A library where document will be copied. It is possible to select:
|
| Target Folder | no | String |
Library relative URL. If you want to copy document to a new folder you can specify it in this property. |
|
If already exists |
yes | Choice |
If the file with the same name already exists you have several option to specify: |
Availability
| Modern Forms | List Actions | Scheduled/Triggered Actions |
| ✓ | ✓ | ✓* |
* In Scheduled/Triggered actions only copying file on the library from the current site is available.
Note: action is available only in SharePoint Online
Output
| Output Parameter | Type | Description |
| ItemID | Number | Returns the Id of the added item as output parameter and can be used in subsequent actions. |
| Url | String | Absolute Url to the created folder. Starts with 'https://' |
| ServerRelativeUrl | String | Server relative path to the created folder. Starts with '/' |
| LibraryRelativeUrl | String | Library relative path to the created folder. Starts with folder name |