1

With SFDX we can run the install:report command to check the status of a package installation.

Is it possible to do the same via any API exposed by salesforce?

So my question: Where is there any documentation on how to query the installation status of a package via the Metadata or tooling API?

3

There is a tooling object for same for that named "packageinstallrequest" .

You can query status field to know the install request status

https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_packageinstallrequest.htm

Update

Further research revealed that this tooling object tracks install and upgrade only of tooling API is used for package install .

  • well now i feel silly lol...thank you – Eric May 1 at 2:38
  • Nps. Happens to me all the time – Mohith Shrivastava May 1 at 2:46
  • Seems this is not really working as expected. The results do not reflect what is currently happening...There are 3 packages that I installed and only 1 record coming back in these results. Not sure what is going on :( – Eric May 6 at 19:48
  • Support case probably ? If this does not work I cannot imagine any other way sfdc cli does it ? – Mohith Shrivastava May 6 at 19:56
  • 1
    Looks like this Table only updates when a Package is installed using this Table. Metadata API requests to install a package do not show up here....When a package is installed via the tooling API using a POST they do show up... – Eric May 10 at 23:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.