Salesforce Data Loader can import images into rich text fields on Salesforce records. This article explains the end-to-end process for mass-importing images by first uploading them as Documents, then constructing HTML image references in your import file, and finally upserting the image HTML into the target rich text field.
Prerequisites:
Step 1 — Upload Images as Salesforce Documents
Prepare an import file to upload images into the Salesforce Documents object. See Mass import Documents into Salesforce for instructions.
Tip: Include a column in your Document import file that maps each document to the Salesforce record ID it will eventually be attached to (for example, name this column RecordID). This makes the later steps easier.
Step 2 — Construct the HTML for the Rich Text Field
After importing documents, take the success file from the import and use it to build the HTML code for the rich text field.
link.link column using one of the following image URL formats:
<img src="https://c.naX.content.force.com/servlet/servlet.ImageServer?id={ImageID}&oid={OrgID}"><img src="https://c.naX.content.force.com/servlet/servlet.FileDownload?file={ImageID}">naX with your actual Salesforce instance (for example, na45).{OrgID} with your Salesforce Organization ID. See Find your Salesforce Organization ID for helpStep 3 — Populate ImageID Using a Formula
link column, with a header that matches your rich text field's API name.ID column from the Document import success file is in column C.=SUBSTITUTE(B2,"{ImageID}",C2)Step 4 — Import Using Data Loader
Your rich text fields are now populated with the imported images in Salesforce.
Insert, Update, or Delete Data Using Data Loader
Install Data Loader on Windows
Mass Import Documents into Salesforce
000383208

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.