Skip to main content Join the Agentforce Virtual Hackathon to build innovative solutions and compete for a $50k Grand Prize. Sign up now. Terms apply.
If I enter an image in a rich text area field, in which object the image gets stored. I thought the image would be stored in Document object but when I went there to check if the image is available there as a Document record I didn't found any thing. Can you please tell me where the images gets stored when I put image in a rich text area Field in salesforce?
4 answers
  1. Mar 22, 2021, 6:32 AM
    Hi Shoubhik,

     

    Salesforce stores richtext fields images in ContentReference object, but we can not query or see this object from anywhere. As an example below you can see I uploaded an image in richtext field on Account and salesforce uploaded in contentReference object only ID stores in img tag of this field data.

     

    Hi Shoubhik, Salesforce stores richtext fields images in ContentReference object, but we can not query or see this object from anywhere.

     

    If you want to get what is object assicated with any record ID use below code in execute anonymous.

    System.debug(System.LoggingLevel.ERROR, Id.valueOf('0EM55000000otq1').getSObjectType());

    At then end, unfortunately we cannot manipulate with ContentReference object at all. 

     

     
Loading
0/9000