Get the Installed package namespace prefix

 How can we get installed Packages of salesforce org Namespace Prefix

Answer

String pkgNamespace =[select NamespacePrefix from ApexClass where Name =:'Any class from your package'].NamespacePrefix;
System.debug('pkgNamespace: '+pkgNamespace);
Labels:
Join the conversation