Newer Version Available

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

Package2 (Beta)

Represents a second-generation package in a Dev Hub org. 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

create(), query(), retrieve(), update(), upsert()

Supported REST HTTP Methods

Query, GET, POST

Fields

Field Details
ContainerOptions
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort
Description
Container options for the second-generation package. These options determine the upgrade and editability rules.
Valid values include:
  • Managed (developer-managed, subscriber-managed)
  • Locked (developer-controlled, subscriber-locked)
  • Unlocked (developer-controlled, subscriber-editable)
Description
Type
string
Properties
Create, Filter, Nillable, Sort, Update
Description
Description of the package.
Name
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Name of the package.
NamespacePrefix
Type
string
Properties
Create, Filter, Group, Nillable, Sort
Description
Namespace prefix that identifies the components of your package in the subscriber’s org.
SubscriberPackageID
Type
reference
Properties
Filter, Group, Sort
Description
ID that identifies this package across all Salesforce instances (starts with 033).

This value is case-sensitive and must be unique.