Apex
...
Types
Input & Output Types

Types.UploadSalesforceFilePayload

Represents input for uploading Salesforce files to external storage using Copy Salesforce Files function. . Following constructors are supported

Apex

  1. contentDocumentId - Salesforce Id of the content document object to be copied
  2. library - Type of library. Example - sharepoint. You can get this value from Content Library
  3. folderId - Id of the folder in external storage where the file should be copied to. You can get this value from Content Library
  4. driveId - Only applicable for SharePoint or Google Drive libraries. Supply null for for other libraries. You can get this value from Content Library
  5. context - This is an optional parameter. If you want to access the parentId in the Salesforce File Copied event, you should pass it here in JSON format — for example: { "recordId": "001dL00000x8X6TQAU" }. If you don’t want to pass a value for this parameter, you can simply pass null.