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
- contentDocumentId - Salesforce Id of the content document object to be copied
- folderId - Id of the folder in external storage where the file should be copied to. You can get this value from Content Library
- driveId - Only applicable for SharePoint or Google Drive libraries. Supply null for for other libraries. You can get this value from Content Library
- 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.