1

Is it possible to retrieve Package Name & Package Version of the Installed Packages in your Org programmatically?

2
  • The suggested duplicate is similar, but different enough that I can't justify marking as duplicate.
    – Derek F
    Jul 27, 2018 at 13:40
  • sfdx force:package:installed:list -u prod
    – bkwdesign
    May 5, 2022 at 19:18

1 Answer 1

0

Using the tooling API (version 34.0 and later), you can retrieve the information of installed packages with the following SOQL. See Publisher documentation for other field references you may be interested in.

List<Publisher> packages = [
                select Name,
                  MajorVersion,
                  MinorVersion
                from Publisher];
1
  • The SOQL on Publisher does not give the name of the installed package. It gives the name of the publisher for the installed package. Do you have any other suggestions?Thanks Jan 22, 2021 at 9:56

Not the answer you're looking for? Browse other questions tagged .