Fields

Fields
ParameterDescription
resourceId
String
requiredId of the file/folder in external storage, for which we're creating the attachment.
resourceType
String
requiredOne of file or folder.
parentId
String
requiredSalesforce Id of the record for which we're creating the attachment.
driveId
String
requiredOnly applicable for SharePoint or Google Drive libraries. Supply null for other libraries. You can get this value from the Content Library.
objectType
String
optionalOptional Salesforce object type of the parent record. Supplied via the 5-parameter constructor; omit or use the 4-parameter constructor to leave it unset.

Constructors

CreateAttachmentInput(
  String resourceId,
  String resourceType,
  String parentId,
  String driveId
)
CreateAttachmentInput(
  String resourceId,
  String resourceType,
  String parentId,
  String driveId,
  String objectType
)