Fields
Fields
| Parameter | Description | |
|---|---|---|
resourceIdString |
required | The Resource Id, i.e. unique identifier of the file or folder being shared. This ID is used to locate and process the resource within the specified library and drive. |
resourceTypeString |
required | Specifies whether the target is a file or folder. |
recordIdString |
required | Specifies the target recipient of the shared resource. This can be: (1) a Salesforce Record ID to associate the file or folder with a record (such as an Account or Opportunity) and share it with all the users having record access; (2) a User ID to share the resource directly with an individual user; or (3) a Group ID to share with a predefined group of users in Salesforce. |
driveIdString |
required | Indicates the ID of the drive in which the target file or folder resides. This is essential for external storage systems like Google Drive or SharePoint, where files are stored across multiple drives. |
Constructors
global ShareResourceInput( String resourceId, String resourceType, String recordId, String driveId )