Fields

Fields
ParameterDescription
contentDocumentId
String
requiredSalesforce Id of the content document object to be copied.
library
String
requiredType of library. Example — sharepoint. You can get this value from the Content Library.
folderId
String
requiredId of the folder in external storage where the file should be copied to. You can get this value from the Content Library.
driveId
String
requiredOnly applicable for SharePoint or Google Drive libraries. Supply null for other libraries. You can get this value from the Content Library.
context
String
optionalOptional. 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" }'
  );