How do I get the namespace of all packages installed in a Salesforce organization?

I want to get the namespace prefix for all packages installed in a Salesforce organization. How can i do this?

+4
source share
2 answers

One fairly simple method is to query and an ApexClass object and get various NamespacePrefix values.

Select NamespacePrefix from the ApexClass group By NamespacePrefix

, ApexClass, . , ApexPage ApexTrigger sObjects. , VisualStream , .

listMetadata API MetaData. Apex.

, salesforce.stackexchange.com - , Salesforce.

+1
SOQL = "SELECT NamespacePrefix FROM PackageLicense"

SOQL-

+1

Source: https://habr.com/ru/post/1537244/


All Articles