This article explains how to bulk import multiple documents into Salesforce using the Salesforce Data Loader tool. This approach is useful when you need to upload a large number of files (such as PDFs, text files, or images) to a specific Salesforce Documents folder without uploading them one at a time through the UI.
Salesforce Data Loader is a client application for the bulk import or export of data. When inserting Documents, Data Loader maps CSV columns to Salesforce Document object fields and handles the file upload in a single operation.
Create a CSV file with the following columns. The table below describes each required field:
| Field | Description |
| FOLDERID | The Salesforce record ID of the folder where documents should be created |
| NAME | The file name for the document |
| CONTENTTYPE | The MIME content type (for example, text/plain or image/jpg) |
| TYPE | The file extension (for example, txt, jpg, pdf) |
| ISPUBLIC | Set to TRUE or FALSE to control visibility to other users |
| BODY | The local file path on your computer (for example, c:\temp\image.jpg) |
| DESCRIPTION | A text description of the file (optional) |
| IsInternalUseOnly | Set to TRUE to allow the file to be used in HTML (for example, logos). Defaults to FALSE |
Sample CSV row:
FOLDERID,NAME,CONTENTTYPE,TYPE,ISPUBLIC,BODY,DESCRIPTION,IsInternalUseOnly
00l20000000tBTk,doc2,text/plain,txt,FALSE,c:\temp\textdoc2.txt,test text file,FALSE
To find the FOLDERID, see Locate the Unique ID of a Record in Salesforce.
Step 2 — Run the Import in Data Loader
Data Loader processes the CSV and uploads the documents to the specified folder in Salesforce.
000384978

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.