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.

This release contains a beta version of Second-Generation Packaging, which means it’s a high-quality feature with known limitations. Second-Generation Packaging isn’t generally available unless or until Salesforce announces its general availability in documentation or in press releases or public statements. We can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only based on generally available products and features. You can provide feedback and suggestions for Second-Generation Packaging in the Salesforce DX Packaging 2 Beta group in the Trailblazer Community.

Second-generation packaging lets you create developer-controlled packages or managed packages. We support developer-controlled packages through an open pilot program. These packages are designed for enterprise customer use cases, but ISVs can also use them during package development. Pilot programs are subject to change. You can install developer-controlled packages in scratch or sandbox orgs but not in a production org. Check out the Trailblazer Community for details on developer-controlled packages.

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