Does domain name change on salesforce new release. For example, currently we have following domain name: test--PCSandbox.cs12.my.salesforce.com. In the new Salesforce release, will the domain name get updated? When does the domain name gets updated?
2 Answers
Components of the URL:
test--PCSandbox.cs12.my.salesforce.com
^^^^ ^^^^^^^^^ ^^^^ ^^^^^^^^^^^^^^^^^
|||| ||||||||| |||| |||||||||||||||||
Domain Name ||| |||| Custom Domain URL
||||||||| ||||
Sandbox Name |
||||
Pod Identifier
- The Domain Name itself will not change at any time, unless you take pains to rename it yourself.
- The Sandbox Name cannot be changed. If you want a different one you will have to create a new sandbox.
- The Pod Identifier will not change at any scheduled interval. If your pod is changed, you will be notified ahead of time (at least for production orgs). For a sandbox it is subject to change during refresh.
- The Custom Domain URL will not likely change any time soon.
Note that you can generate your domain specific URL without any need for hard-coding, so there is never any need to do so. Simply use the URL.getOrgDomainUrl()
method.
Returns the canonical URL for your org. For example,
https://yourDomain.my.salesforce.com
or, for orgs without My Domain enabled,https://yourInstance.salesforce.com
.
There is a Critical Update that addresses this. Around March, 2019, the domain name will no longer include the host name. You can test this now in your org by enabling the Critical Update in the Setup menu. Aside from that, the URL did not historically change with each new release. It could, however, change between Sandbox Refresh requests.