Fields
Fields
| Parameter | Description | |
|---|---|---|
resourceIdString |
required | Id of the file/folder in external storage, for which we're creating the attachment. |
resourceTypeString |
required | One of file or folder. |
parentIdString |
required | Salesforce Id of the record for which we're creating the attachment. |
driveIdString |
required | Only applicable for SharePoint or Google Drive libraries. Supply null for other libraries. You can get this value from the Content Library. |
objectTypeString |
optional | Optional 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 )