Apex
...
Types
Input & Output Types
Types.CreateAttachmentInput
represents input for creating attachments using create attachments docid\ yvh dhtsakkluksjr t7y function following contuctors are supported createattachmentinput( string resourceid, string resourcetype, string parentid, string driveid ) resourceid id of the file/folder in external storage, for which we're creating the attachment resourcetype one of file or folder parentid salesforce id of the record for which we're creating the attachment driveid only applicable for sharepoint or google drive libraries supply null for other libraries you can get this value from content library docid\ wtj62wux2a6hgfwvpm4ij