You need to sign in to do that
Don't have an account?
CarlB
CustomSite metadata
Hello.
I'm trying to figure out how I can find out the URL for a particular page hosted in a Salesforce Site, using the metadata API.
I know that the url should be something like "https://AAA-BBB.CCC.force.com/DDD/Page_Name, where AAA is the sandbox name, BBB is the site name, CCC is the Salesforce host and DDD is the site path.
I have obtained the CustomSite metadata for the Site. According to the documentation, the getSubdomain() method should give me "AAA-BBB.CCC.force.com". However, instead it just gives me "BBB".
Is the documentation wrong? If so, how do I generate the full URL for the page?
I'm trying to figure out how I can find out the URL for a particular page hosted in a Salesforce Site, using the metadata API.
I know that the url should be something like "https://AAA-BBB.CCC.force.com/DDD/Page_Name, where AAA is the sandbox name, BBB is the site name, CCC is the Salesforce host and DDD is the site path.
I have obtained the CustomSite metadata for the Site. According to the documentation, the getSubdomain() method should give me "AAA-BBB.CCC.force.com". However, instead it just gives me "BBB".
Is the documentation wrong? If so, how do I generate the full URL for the page?
Complete domain will be combination of the domain url and subdomain.
For example, if the test.salesforce.com, the subdomain will be "test" and the domain URL will be salesforce.com.
PS: if this answers your question then hit Like and mark it as solution/best answer
So where do I get the domain URL from?
Regards,
Carl
https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_sites.htm
PS: if this answers your question then hit Like and mark it as solution/best answer
Will that work from a Java client accessing the org using the metadata API?
Regards,
Carl