Package2Member

Represents a component in a second-generation managed package in a subscriber’s org. Created when the subscriber installs the package.

Version 

Introduced in API version 40.0.

Supported SOAP API Calls 

describeSObjects(), query(), retrieve()

Supported REST API Methods 

Query, GET

Fields 

CurrentPackageVersionId 

  • Type: ID

  • Required: No

  • Properties: Filter, Group, Nillable, Sort

  • Description: The ID of the current SubscriberPackageVersion.

MaxPackageVersionId 

  • Type: ID

  • Required: No

  • 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: ID

  • Required: No

  • Properties: Filter, Group, Nillable, Sort

  • Description: The ID of the first SubscriberPackageVersion that contained this Package2Member. Starts with 04t.

SubjectId 

  • Type: ID

  • Required: No

  • Properties: Filter, Group, Nillable, Sort

  • Description: The ID of the component that this Package2Member is referencing.

This value is case-sensitive and must be unique.

SubjectKeyPrefix 

  • Type: text

  • Required: No

  • Properties: Filter, Group, Nillable, 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: staticenum

  • Required: No

  • Properties: Filter, Group, Nillable, Sort

  • Description: The manageability state of this Package2Member. References ManageableStateEnum.

Valid values include:

SubscriberPackageId 

  • Type: ID

  • Required: No

  • Properties: Filter, Group, Nillable, Sort

  • Description: ID that identifies this package across all Salesforce instances (starts with 033).

DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!