You need to sign in to do that
Don't have an account?
Ajay Dubey
How to get base url in managed package?
I have a requirement where I need to get Base URL in managed package class. I am using Url.getSalesforceBaseUrl().toExternalForm() to get base URL but getting
https://custom-domain-name--prefix.ap2.visual.force.com instead of https://custom-domain-name.my.salesforce.com
Thanks in advance.
https://custom-domain-name--prefix.ap2.visual.force.com instead of https://custom-domain-name.my.salesforce.com
Thanks in advance.
All Answers
Thanks for your suggestion . But in this procedure user need to create record in custom setting. Is there any other way ? because I want to automate the procedure
I have created custom setting and included that setting in package . Using post install script I am able to get base url of the Org and inserted a record in Custom setting.