From the "Subscribers" / "Subscriber Support" tab included with the License Management Application (for ISVforce and OEM partners), Partners can see an overview of a given customer/Subscriber's org, including information about how the Partner is using the Partner's packages. Getting to this "Partner Black tab" view is initiated by searching for the appropriate org, and then clicking on a link in the org's row.
I want to be able to perform this login without using the Subscribers tab, e.g. from a custom Licenses overview page in our LMO. While the Subscribers tab is nice, I want to have a unified/consolidated view of Licenses and Subscribers, all in one table.
So --- to do this, naturally, I started by copying the link from one of the rows in the Subscribers table, and tried to deconstruct it to see if I have the information I need to construct the link dynamically from data stored in the
sfLma__License__c object. I can ALMOST do this, but there's a
CONFIRMATIONTOKEN at the end of the link, and I do not know where this comes from or how to dynamically construct it, if it's even possible.
Does anyone know how to construct this
https://<instance>.salesforce.com/servlet/servlet.PartnerLoginLmoServlet ?pbtpackid=<packageId, obtainable from Package record> &pbtsoid=<subscriberOrgId, obtainable from License record> &pbtpackvid=<packageVersionId, obtainable from Package Version record> &destination=b &_CONFIRMATIONTOKEN=<??? HOW IS THIS CALCULATED / WHERE DOES IT COME FROM ???>