You need to sign in to do that
Don't have an account?
Sarita Pa 3
How to get salesforce base url in lightning
Hi All,
Good Day.
Could you help me how to get salesforce base url for lightning.
Thanks and Regards,
venkata
Hi Raj,
Thanks for your quick reply. I am really sorry for not putting that i need the url in apex class not in lightning component.
Thanks and Regards
Thanks and Regards,
ve
venkata
getOrgDomainUrl() always returns the same domain for your org, regardless of context. Use this method to build links to record URLs that work both in Lightning Experience and in Salesforce Classic, or as the domain when making API calls to your org.
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_url.htm