You need to sign in to do that
Don't have an account?
Internal Partner
Is it good to use the same image URLin a HTML email template in all enivironments?
Hi all,
I am using a reference to an image in an URL which is in a Sandbox. This looks like this for example in a HTML email template:
I am using a reference to an image in an URL which is in a Sandbox. This looks like this for example in a HTML email template:
<img align="center" alt="Image" border="0" class="center autowidth" src="https://c.cs87.content.force.com/servlet/servlet.ImageServer?id=0156E000000dQ0F&oid=00D6E0000004yxD&lastMod=1573484239001" style="outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; clear: both; border: 0; height: auto; float: none; width: 100%; max-width: 300px; display: block;" title="Image" width="300"/>Which are the risks to use the same URL in the same email template in another Sandbox or even in the Production environment?. which are best practices?
1. The url changes in every environment, in one sandbox you are having https://c.cs87.content.., while in production the URl would be like https://c.my.content...
2. The id fields(id, oid) in the URL mentioned would be different in every environment.
To overcome these issues, keep your IMG inside static resources and refer those in src in html page like $Resource.<img name>