You need to sign in to do that
Don't have an account?
MattMet86
Images in Documents from Sandbox to Production without changing ID
We have images that are used in formulas in Sandbox like this:
Is there a better way to reference images so that they can be referenced in both Sandbox and Production? Maybe the thing called Static Resource which I haven't used yet.
CASE( Session_Status_Picklist__c, "Complete", IMAGE("/servlet/servlet.FileDownload?file=01518000000EvIC","! Completed",50,50), "In Progress", IMAGE("/servlet/servlet.FileDownload?file=01518000000EvI2","! In Progess",50,50), "Under Admin Review", IMAGE("/servlet/servlet.FileDownload?file=01518000000EvIW","! Under Review",50,50), "" )When I move the images to Production the ID value for the image will change.
Is there a better way to reference images so that they can be referenced in both Sandbox and Production? Maybe the thing called Static Resource which I haven't used yet.
You can try below sample formula:
Regards,
Mahesh
For more information, using the static resource you will not get these kind of issues.
Example given here:
Upload image in resourse . and then file open --> view file then copy url. for example
url may be https://ap1.salesforce.com/resource/1329402101000/Image1
then edit the url like this ' /resource/Image1'
IMAGE(
CASE( {!Rating__c},
1, " /resource/Image1'", 'None','No Image'
)
More links:
https://developer.salesforce.com/forums/?id=906F00000008o86IAA
http://sfdcsrini.blogspot.com/2014/07/how-to-use-static-resource-in-image.html
https://developer.salesforce.com/forums/?id=906F00000008zCfIAI
https://developer.salesforce.com/forums/?id=906F0000000BURhIAO
Please do let me know if it helps you.
Regards,
Mahesh
I tried this but it didn't work:
Please try the below links:
https://developer.salesforce.com/forums/?id=906F0000000978aIAA
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_resources_reference.htm
Regards,
Mahesh