Fields
Fields
| Parameter | Description | |
|---|---|---|
contentDocumentIdString |
required | Salesforce Id of the content document object to be copied. |
libraryString |
required | Type of library. Example — sharepoint. You can get this value from the Content Library. |
folderIdString |
required | Id of the folder in external storage where the file should be copied to. You can get this value from the Content Library. |
driveIdString |
required | Only applicable for SharePoint or Google Drive libraries. Supply null for other libraries. You can get this value from the Content Library. |
contextString |
optional | Optional. If you want to access the parentId in the Salesforce File Copied event, pass it here in JSON format — for example: { "recordId": "001dL00000x8X6TQAU" }. If you don't want to pass a value, pass null. |
Constructors
UploadSalesforceFilePayload( String contentDocumentId, String library, String folderId, String driveId )
UploadSalesforceFilePayload( String contentDocumentId, String library, String folderId, String driveId, String context )
Example
Types.UploadSalesforceFilePayload payload = new Types.UploadSalesforceFilePayload( contentDocumentId, 'sharepoint', folderId, driveId, '{ "recordId": "001dL00000x8X6TQAU" }' );