You need to sign in to do that
Don't have an account?
Michael Kolodner 13
Get the My Domain URL in my Lightning component controller?
Is there a simple way, in the controller for a Lightning component, to get the My Domain of the org? I would like to easily know the URL for login of the org this component is displaying in so that I could know mydomain.my.salesforce.com or mydomain.lightning.force.com.
Literally all I'm looking for is the method to get the string "mydomain"
Literally all I'm looking for is the method to get the string "mydomain"
There are many ways you can get your domain name.. You can create a method and get the domain name for example
--
Thanks,
Prashant
How about like this? If there is any other ways, please share.
Regards,
LinThaw