MetadataPackage

Represents a package that has been developed in the org you’re logged in to. Applies to unlocked, unmanaged, first-generation, and second-generation managed packages.

Version 

Introduced in API version 37.0.

Supported SOAP API Calls 

describeSObjects(), query(), retrieve()

Supported REST API Methods 

GET, HEAD, Query

Fields 

Name 

  • Type: string

  • Required: No

  • Properties: Filter, Group, idLookup, Sort

  • Description: The name of the package.

NamespacePrefix 

  • Type: string

  • Required: No

  • Properties: Filter, Group, Nillable, Sort

  • Description: For first-generation and second-generation managed packages, and unlocked packages with namespaces, this field is the namespace prefix assigned to the package. For unmanaged packages, or no-namespace unlocked packages, this field is blank.

PackageCategory 

  • Type: picklist

  • Required: No

  • Properties: Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort

  • Introduced: API version 49.0

  • Description: The type of package.

The default value is Package.

  • Possible values:

    • Package — Package (default) — Represents either an unmanaged package or a first-generation managed package.

    • Application — Application

    • Module — Module

    • Package2 — Artifact — Represents either an unlocked package or a second-generation managed package.

  • Default value: Package

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