You need to sign in to do that
Don't have an account?
dipu
How to get the relative URL for the static resource in a controller?
I want to get the relative URL for the static resource in a controller. The StaticResrouce object does not seem to have any information about the number (1300899525000) I see in the relative URL.
https://na7.salesforce.com/resource/1300899525000/Image_DefaultProductIcon
Well it seems that long number is not required. Just resource/Image_name works just fine.
/resource/Image_DefaultProductIcon
All Answers
Well it seems that long number is not required. Just resource/Image_name works just fine.
/resource/Image_DefaultProductIcon