Newer Version Available

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

Package2Member (Beta)

Represents a component in a second-generation 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 Trailblazer Community.

To enable this beta feature, which includes managed packages and unlocked packages, enable Packaging 2 in your Dev Hub org. Locked packages are available as part of a pilot.

Note

Supported SOAP Calls

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
Reserved for future use.
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
Description
The ID of the component that this Package2Member is referencing.

This value is case-sensitive and must be unique.

Valid values include IDs for the following items:
  • ActionEmail
  • ActionFieldTemplate
  • ActionOutboundMessage
  • ActionTask
  • ApexClass
  • ApexComponent
  • ApexPage
  • ApexTrigger
  • AuraDefinitionBundle
  • CompactLayout
  • CustomEntityDefinition
  • CustomFieldDefinition
  • CustomPage
  • CustomTabDefinition
  • Document
  • EmailTemplate
  • ExternalString
  • FieldSet
  • FlexiPage
  • FlowDefinition
  • InteractionDefinitionVersion
  • Layout
  • NamedFilter
  • PageComponent
  • PermissionSet
  • Profile
  • RecordType
  • RemoteProxy
  • SharedPicklistDefinition
  • StaticResource
  • ValidationFormula
  • WebLink
  • WorkflowRule
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 (label: Managed-Beta)
  • deleted (label: Managed-Proposed-Deleted)
  • deprecated (label: Managed-Proposed-Deprecated)
  • installed (label: Managed-Installed)
  • released (label: Managed-Released)
  • unmanaged (label: Unmanaged)
SubscriberPackageId
Type
reference
Properties
Filter, Group, Sort
Description
ID that identifies this package across all Salesforce instances (starts with 033).