Skip to main content
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 件の回答
  1. 2021年3月22日 6:32
    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.