The DECLARE_RECORD action declares a file as a record in Alfresco Content Services (ACS).
Use this action to place content under records management controls and governance policies. Declaring a file as a record helps organizations manage retention, compliance, auditing, and lifecycle requirements. The action can optionally move the declared record to a designated records-management folder and hide it from its original location.
During the operation, the connector identifies the target file. ACS validates that the content can be declared as a record and records-management controls are applied to the file. The file is optionally moved to the specified records folder and/or hidden from its original location. Once declared, the content becomes subject to the organization's records-management policies.
The input parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| file | Array<json>, JSON | Optional | ACS file to declare as a record. If multiple files are provided, only the first file is processed. |
| fileId | String | Optional | Node ID of the file to declare as a record. For example: 775a8f2d-8123-49a7-ae1f-f3f49d4eae20. |
| filePath | String | Optional | Location or relative path of the file to be updated. For example, a location path could be /app:company_home/app:user_homes/cm:hruser and a relative path could be /User Homes/hruser (by default the relative path is from Company Home). |
| hideRecord | Boolean | Optional | Specifies whether the declared record should be hidden from its current parent folder. |
| targetFolder | Array<json> | Optional | Folder variable identifying where the record will be stored. |
| targetFolderId | String | Optional | Node ID of the destination folder where the record will be stored. |
| targetFolderPath | String | Optional | Location or relative path of the target file. For example, a location path could be /app:company_home/app:user_homes/cm:hruser and a relative path could be /User Homes/hruser (by default the relative path is from Company Home). |
The output parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| response | Array<json> | Optional | Response returned by ACS for the record declaration request. |
In the following output example, the file was successfully declared as a record:
{
"response": [
{
"status": "SUCCESS",
"recordDeclared": true
}
]
}