I'm trying to properly build a relative URL from within a managed package context, so that a simple link can be provided to the user to bring them to the assign licenses page specifically for that managed package.
When you have an installed managed package that requires assigning licenses, you can go to the follow relative URL which shows the assign licenses page:
The first Id is the
Package object Id, while the second Id is the
PackageLicense object Id.
PackageLicense is queryable via SOQL and you can get rich data like
UsedLicenses on the installed package (can grab the right one via
Unfortunately the PackageLicense doesn't specify the actual
Package Id itself, and
Package object itself isn't queryable.
Is there any way to get that first Id using SOQL?
Publisheras suggested here, but it doesn't show any Package Id
The Tooling API actually pulls up the right package Id. By following this post's suggestion, I was able to pull up the right Package Id via the