function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Martin SmithmyerMartin Smithmyer 

My Domain and Instance Refresh

In preparation for an instance refresh, we setup My Domains. Can't find a lot of information on how much this will address hardcoded urls. For example, will images and pdfs in Documents get updated to My Domain url?

Also read this:
Make sure that you update all application URLs before you deploy a domain name. For example, the Email Notification URL field in Chatter Answers continues to send notifications with the old URLs to internal users unless you update it.

How do I determine which applications have hardcoded URLs.

I'm using Force.com IDE to find all instances of hardcoded URL, It just is not clear whether some of this will be resolved by My Domain.
Best Answer chosen by Martin Smithmyer
Prateek Singh SengarPrateek Singh Sengar
Hi Martin,
If you are using relative URL's in your application they will not be impacted. For hard coded absolute URL's you will have to update them manually to use the custom domain. The best way to determine and find out all hard coded URL's is Force.com IDE, from your description it looks like you are already doing it. 
However if you need more help or step by step guide please ref to the below link
https://help.salesforce.com/apex/HTViewSolution?urlname=Updating-Hard-Coded-References-FAQ&language=en_US
http://help.salesforce.com/HTViewSolution?id=000215694&language=en_US

Please note that as a best practice, its recommended to first try the domain on a sandbox and run an end to end test to ensure that everything is working as expected.


 

All Answers

Prateek Singh SengarPrateek Singh Sengar
Hi Martin,
If you are using relative URL's in your application they will not be impacted. For hard coded absolute URL's you will have to update them manually to use the custom domain. The best way to determine and find out all hard coded URL's is Force.com IDE, from your description it looks like you are already doing it. 
However if you need more help or step by step guide please ref to the below link
https://help.salesforce.com/apex/HTViewSolution?urlname=Updating-Hard-Coded-References-FAQ&language=en_US
http://help.salesforce.com/HTViewSolution?id=000215694&language=en_US

Please note that as a best practice, its recommended to first try the domain on a sandbox and run an end to end test to ensure that everything is working as expected.


 
This was selected as the best answer
Martin SmithmyerMartin Smithmyer
OK, thanks. Already went through all hardcoded urls based on Force.com IDE. I am surprised that our PDFs from Documents are listed as hardcoded and there does not seem to be any way around it, since if I upload them again, the will still be hardcoded.  But only three documents are impacted. The other hardcoded urls were easy to resolve. Thanks for your help.