Fields

Fields
ParameterDescription
resourceId
String
requiredThe 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.
resourceType
String
requiredSpecifies whether the target is a file or folder.
recordId
String
requiredSpecifies 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.
driveId
String
requiredIndicates 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
)