+ Start a Discussion
Sam y.ax1728Sam y.ax1728 

Image using workflow or trigger

Hi All-

 

Is it possible to update text field with image using apex trigger?
Something like , Account.field=IMAGE(' image location');

if not,then is there any other way? I think workflow field update has similar limitation,i.e., I can not update field with image.

I am reaching the character limit in formula so not able to use it.

Thanks,

Sam

Best Answer chosen by Admin (Salesforce Developers) 
Jerun JoseJerun Jose
You cannot input images in text fields. You can try to split the logic into two parts and have the WF do the heavy logic and then use a formula to pick it up from there.

Using apex, you can populate images into a rich text field.
http://ankit-rustagi.blogspot.in/2012/10/to-insert-image-into-rich-text-area.html

All Answers

Jerun JoseJerun Jose
You cannot input images in text fields. You can try to split the logic into two parts and have the WF do the heavy logic and then use a formula to pick it up from there.

Using apex, you can populate images into a rich text field.
http://ankit-rustagi.blogspot.in/2012/10/to-insert-image-into-rich-text-area.html
This was selected as the best answer
Sam y.ax1728Sam y.ax1728

Perfect !

Thanks a lot for your reply, Jerun.