---
schema_version: "1"
id: 7056b935677fdbb27ce895c1a5d277bccf84a71804ed054ebd3e179be6c55df9
title: Package2Member
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_tooling/tooling_api_objects_package2member.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_package2member.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 067ec6edbec8a03587582e1756567f54bb73bd4fee4e1ffd60e19eb61e547b2e
description: 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.
---
# 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.





 |
| 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).



 |