Apex
...
Types
Input & Output Types

Types.CreateLinkInput

Represents input for creating a CLoudFiles link using Create Links functions. Following contuctors are supported -

Apex

  1. resourceId - Id of the file/folder in external storage, for which we're creating the attachment
  2. resourceType - One of file, folder or dataroom
  3. parentId - Salesforce Id of the record for which we're creating the attachment
  4. name - Name of the link
  5. driveId - Only applicable for SharePoint or Google Drive libraries. Supply null for other libraries. You can get this value from Content Library