Dipankar Das (Apttus Inc) asked in #ApexFeb 23, 2016, 6:06 AMIs there a function to get content domain URL?System.URL.getSalesforceBaseUrl() gives us the salesforce base URL. Is there a functon to get content domain URL?3 answersSortSort by DateSort by Most HelpfulSort by DateLoad more comments...Adrian Gawryszewski (PwC IT Services sp.z.o.o.)Feb 23, 2016, 9:49 AMYou can use javascript window.location.hostname to get domain name. Or you can try this:https://developer.salesforce.com/forums/?id=906F00000009A5oIAEReply in Slack
Adrian Gawryszewski (PwC IT Services sp.z.o.o.)Feb 23, 2016, 9:49 AMYou can use javascript window.location.hostname to get domain name. Or you can try this:https://developer.salesforce.com/forums/?id=906F00000009A5oIAE