You need to sign in to do that
Don't have an account?
❤Code
Display Attachment image in formula field
Hi All,
I have a trigger which updates attachment id into a custom field of object X__c. I have creatted a formula field with below formula to display the attached pic
IMAGE('/servlet/servlet.FileDownload?file=customfield__c', customfield__c ,20,20).
But the image is not getting displayed.But if i replace the customfield__c with recordid like below , the image is getting displayed. Please help where i am going wrong.
IMAGE('/servlet/servlet.FileDownload?file=00P28000000Ezg4', customfield__c ,20,20).
Regards
I have a trigger which updates attachment id into a custom field of object X__c. I have creatted a formula field with below formula to display the attached pic
IMAGE('/servlet/servlet.FileDownload?file=customfield__c', customfield__c ,20,20).
But the image is not getting displayed.But if i replace the customfield__c with recordid like below , the image is getting displayed. Please help where i am going wrong.
IMAGE('/servlet/servlet.FileDownload?file=00P28000000Ezg4', customfield__c ,20,20).
Regards
Modify your formula like
IMAGE('/servlet/servlet.FileDownload?file=' + {!customfield__c}, customfield__c ,20,20).
IMAGE('/servlet/servlet.FileDownload?file={!customfield__c}', customfield__c ,20,20).
Hope anyone in these two will work.
Thanks
IMAGE('/servlet/servlet.FileDownload?file=' + customfield__c, customfield__c ,20,20)
what is customfield__c here