Newer Version Available

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

Package2Member (Beta)

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

As a beta feature, Second-Generation Packaging is a preview and isn’t part of the “Services” under your master subscription agreement with Salesforce. Use this feature at your sole discretion, and make your purchase decisions only on the basis of generally available products and features. Salesforce doesn’t guarantee general availability of this feature within any particular time frame or at all, and we can discontinue it at any time. This feature is for evaluation purposes only, not for production use. It’s offered as is and isn’t supported, and Salesforce has no liability for any harm or damage arising out of or in connection with it. All restrictions, Salesforce reservation of rights, obligations concerning the Services, and terms for related Non-Salesforce Applications and Content apply equally to your use of this feature. You can provide feedback and suggestions for second-generation packaging in the Packaging 2 Beta group in the Trailblazer Community.

Note

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 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 package, and later deleted from the package. For safety’s sake, the component was not deleted in the subscriber’s org when the developer deleted it from the package. For example, to avoid data loss, we don't delete schema objects.
  • installed—Installed as part of a second-generation package. For components in second-generation packages, the subscriber can make modifications, but all changes are overwritten by the next upgrade.
  • unmanaged—Not applicable. (Used only for first-generation packages.)
  • released—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).