Newer Version Available

This content describes an older version of this product. View Latest

Get an Image from a Rich Text Area Field

Use the SObject Rich Text Image Retrieve to retrieve an image that has been uploaded to a rich text area field.

The following example retrieves an image that has been uploaded to a rich text area field for a Lead record.

Example for retrieving an image from a rich text field for a Lead record
1curl https://yourInstance.salesforce.com/services/data/v50.0/sobjects/Lead/00Q112222233333/richTextImageFields/customRTA__c/0EMR00000000A8V -H "Authorization: Bearer token"
Example request body
None required.
Example response body
Attachment body content is returned in binary form. The response content type is not JSON or XML since the returned data is binary.