You need to sign in to do that
Don't have an account?
mcrispin@safeschools.com
Instance change this weekend and starting to panic; how to actually change the hard coded URL's once located?
We have an split coming up this weekend and need to change all of our hard coded URL's and I'm really starting to panic! Please know I have referenced the documentation on the URL splits. I've got the Eclipse up and running and I'm able to find our hard coded URL's. I know we need to remove the "na2" from the URL's. After this is where I'm lost.
I've run a general search and already found 260 instances that reference "na2". How do I edit these URL's?. Will we need to manually locate each reference and change each through the UI? If so, I tried to manually change the URL of our home page company logo by locating that graphic in our documents folder, right clicked for URL, removed the na2.content.force.com, and then selected the "Create a reference link to the file. Enter a file location that others can access." When I load the URL reference without the instance, the graphic breaks. Is this b/c the URL on the graphic needs to be changed and then reloaded in SF? If this is the case, is there a way to change any of the other references from the back end that are not graphics? Are there any cases where the instance portion of the URL will be ignore and making an update is not necessary? Thank you for any additional direction you can give!!
I've run a general search and already found 260 instances that reference "na2". How do I edit these URL's?. Will we need to manually locate each reference and change each through the UI? If so, I tried to manually change the URL of our home page company logo by locating that graphic in our documents folder, right clicked for URL, removed the na2.content.force.com, and then selected the "Create a reference link to the file. Enter a file location that others can access." When I load the URL reference without the instance, the graphic breaks. Is this b/c the URL on the graphic needs to be changed and then reloaded in SF? If this is the case, is there a way to change any of the other references from the back end that are not graphics? Are there any cases where the instance portion of the URL will be ignore and making an update is not necessary? Thank you for any additional direction you can give!!
All Answers
You will need to modify any Custom Code, custom button or links, email templates, formula fields, workflows, etc that have the url hardcoded. When we went through this we used eclipse for all that. I am not entirely sure I follow what you mentioned, but anything that you configure through the UI without writing code should point to the correct location after the split.
Example: Document containing image that is referenced on the App Header logo. That does not need any modification.
Basically concentrate on anything that is coded.
I will share a summary of what I gave my team when we had to go over this:
In General
Try to use relative URLs instead of the full URL.
Relative URL: /apex/MyPage
Full URL: na4.salesforce.com/apex/MyPage
In Apex
If you see : https://na4.salesforce.com
You can replace it with: URL.getSalesforceBaseUrl().toExternalForm()
In VF Pages
Use relative URLs.
Yes, you will have to make this changes in a sandbox first and then migrate them to your production environment. Some changes (Point n Click stuff) you could make directly in production, but you would have to do them manually. Eclipse will only let you save your changes to your sandbox.
Reach out to me if you are interested in some help.
http://bit.ly/1EBWcuj