Newer Version Available

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

MetadataPackage

Represents a managed or unmanaged package that has been developed in the org you’re logged in to.

Supported Calls

describeSObjects()query()retrieve()

Fields

Field Name Details
Name
Type
string
Properties
Filter, Group, idLookup, Sort
Description

The name of the package.

NamespacePrefix
Type
string
Properties
Filter, Group, Nillable, Sort
Description
For managed packages, this field is the namespace prefix assigned to the package. For unmanaged packages, this field is blank.

Usage

Here are examples of the types of API queries you can perform.
Query String
Show all managed and unmanaged packages in the org SELECT Name, NamespacePrefix FROM MetadataPackage
Show only managed packages in the org SELECT Name, NamespacePrefix FROM MetadataPackage WHERE NamespacePrefix <> ''