Newer Version Available

This content describes an older version of this product. View Latest

Package2Member

Represents a component in a second-generation managed package in a subscriber’s org. Created when the subscriber installs the package. Available in API version 41.0 and later.

Supported SOAP Calls

describeSObjects(), query(), retrieve()

Supported REST HTTP Methods

Query, GET

Fields

Field Details
CurrentPackageVersionId
Type
reference
Properties
Filter, Group, Sort
Description
The ID of the current SubscriberPackageVersion.
MaxPackageVersionId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Indicates the last package version that a metadata component was contained in. It's set if the object is left in the subscriber org after upgrade. For example, if the package developer removes an Apex class, that class and its Package2Member are hard deleted. However, to avoid data loss, we don't delete schema objects.
MinPackageVersionId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of the first SubscriberPackageVersion that contained this Package2Member. Starts with 04t.
SubjectId
Type
reference
Properties
Filter, Group, Sort, Unique
Description
The ID of the component that this Package2Member is referencing.

This value is case-sensitive and must be unique.

For information on how to find valid SubjectId values, see How Salesforce Developer Experience Changes the Way You Work and Determine Metadata Coverage at a Glance in the Salesforce Summer ’18 Release Notes.

SubjectKeyPrefix
Type
string
Properties
Filter, Group, Sort
Description
The key prefix for the component that this Package2Member is referencing—for example, 01W for an ActionEmail component or 01Q for a WorkflowRule component.
SubjectManageableState
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The manageability state of this Package2Member. References ManageableStateEnum.
Valid values include:
  • beta—Not applicable. (Used only for first-generation packages.)
  • deleted—Not applicable. (Used only for first-generation packages.)
  • deprecated—Installed as part of a second-generation managed package, and later deprecated from the package.
  • deprecatedEditable—Installed as part of an unlocked package, and later deprecated from the package.
  • installed—Installed as part of a second-generation managed package.
  • installedEditable—Installed as part of an unlocked package. For components in unlocked packages, an admin can make modifications, but all changes are overwritten by the next upgrade.
  • released—Not applicable. (Used only for first-generation packages.)
  • unmanaged—Not applicable. (Used only for first-generation packages.)
SubscriberPackageId
Type
reference
Properties
Filter, Group, Sort
Description
ID that identifies this package across all Salesforce instances (starts with 033).