You are here:
Create a .csv File for Article Import
The import file maps the article contents to Knowledge article fields. For example, map a Title column in your .csv file with the standard Title field to import each article's title.
Required Editions
| Available in Salesforce Classic and Lightning Experience. View supported editions. |
| User Permissions Needed | |
|---|---|
| To import articles: | Manage Salesforce Knowledge AND Manage Articles AND Manage Knowledge Article Import/Export AND Read, Create, Edit, and Delete on the article type |
- Create a .csv file to import articles.
Note In Salesforce Classic, you import each article type separately, so you create a .csv file for each article type. In Lightning Knowledge, you can import articles of different types in one .csv file and set the record type during import.- There can only be one .csv file and one .properties file.
- The .csv file and the .properties file must be in the root directory.
- The compression process must preserve the folder and subfolder structure.
- The .zip file name can’t contain special characters.
- The .zip file can't exceed 20 MB and the individual, uncompressed, files within the zip file can't exceed 10 MB.
- .csv files can't have more than 10,000 rows, including the header row. Therefore, you can have a maximum of 9,999 articles and translations.
- .csv file rows can't exceed 400,000 characters.
- .csv file cells can't exceed 32 KB.
- Each article in the .csv file can't have more than 49 translations.
- In the first row, specify the article's fields and metadata, such as title, language,
data categories, and channels.
Enter one item in each column. You can use the following fields and metadata to import content.
Field or data Description isMasterLanguage Identifies the article as a primary (1) or translation (0). Required to import articles with translations, however, isMasterLanguage can’t be in a .csv file to import articles without translations. A translation must follow its primary article so that it’s associated with the primary article preceding it. Title The article or translation's title. Required for all imports. Record Type Indicates an article’s record type, for example, FAQ. Article import requires the 15-character, case-sensitive ID format. Standard and custom fields Refer to an article type's standard fields using field names and refer to custom fields using API names. If the related article type field is mandatory, leaving a row cell empty can cause your articles to be skipped. Rich text area field Use the rich text area custom fields to import .html files or images. Refer to an article type's rich text area field using its API name. File field Use the file custom fields to import any file type (.doc, .pdf, .txt). Refer to an article type's file field using its API name. Data category groups To categorize the imported articles, use category groups. Refer to a category group using its unique name prefixed with datacategorygroup.. For example, usedatacategorygroup.Productsto specify the category group Products.Channel To specify where the imported articles are available, use the keyword Channels.Language Specify the articles' language. Required to import articles with translations. Optional to import articles without translations. If you don't include this column, the articles automatically belong to the default knowledge base language and you can't import translations along with the primary articles. - In subsequent rows, specify the articles you want to import.
Use one row per article, and enter the appropriate information in each field or metadata column. You can leave a column blank to skip importing data. For example, if some fields only appear in certain record types, enter values only for the appropriate articles of those types.
Important All file names are case-sensitive and must exactly match what is in the .csv file.
The following example shows .csv files to import product offer
articles. The first file imports articles without translations. The second .csv file imports
articles with translations. The .csv files contain titles, summaries, and descriptions. They
also classify the articles in the category group Products and make them available for
specific channels. The description__c field is a rich
text area and only supports paths to .html files. The summary__c field is a text field and only supports raw text. The summary field
is optional, and summary__c is left blank for some
rows. The RecordTypeId sets the Product Offer record
type for two of the articles, and the “Best Desktop Computer Deals” article is an FAQ.
Example articlesimport.csv
file:
Title,summary__c,description__c,datacategorygroup.Products,Channels,RecordTypeId
Free Digital Camera Offer, Get the new Digital Camera.,data/freecam.html,Consumer_Electronics,application+csp,012RM0000002Q5M
Best Desktop Computer Deals,,data/bestdeals.html,Desktop,application+csp,012RM0000002Q5g
Free Shipping on Laptop and Desktops,,data/freeship.html,Laptop+Desktops,application+csp,012RM0000002Q5MExample
articlestranslationsimport.csv
file:
isMasterLanguage,Title,summary__c,description__c,datacategorygroup.Products,Channels,Language,RecordTypeId
1,Free Digital Camera Offer,Get the new Digital Camera,data/freecam.html,Consumer_Electronics,application+csp,en,012RM0000002Q5M
0,Libérer l'Offre d'Appareil photo digital,Obtenir le nouvel Appareil photo digital.,data/freecam/fr.html,,,fr,012RM0000002Q5M
0,Liberte Oferta Digital de Cámara,Consiga la nueva Cámara Digital.,data/freecam/es.html,,,es,012RM0000002Q5M
1,Best Desktop Computer Deals,,data/bestdeals.html,Desktops,application+csp,en,012RM0000002Q5g
0,Meilleures Affaires d'ordinateurs de bureau,,data/bestdeals/fr.html,,,fr,012RM0000002Q5g
0,Mejores Tratos de ordenadores,,data/bestdeals/es.html,,,es,012RM0000002Q5g
1,Free Shipping on Laptop and Desktops,,data/freeship.html,Laptops+Desktops,application+csp,en,012RM0000002Q5M
0,Libérer Affranchissement sur Portables et Ordinateurs,,data/freeship/fr.html,,,fr,012RM0000002Q5M
0,Liberte Franqueo en Laptops y Ordenadores,,data/freeship/es.html,,,es,012RM0000002Q5M| Title | summary__c | description__c | datacategorygroup .Products | Channels | RecordTypeID |
|---|---|---|---|---|---|
| Free Digital Camera Offer | Get the new Digital Camera. | data/freecam.html | Consumer_ Electronics | application+csp | 012RM0000002Q5M |
| Best Desktop Computer Deals | data/bestdeals.html | Desktop | application+csp | 012RM0000002Q5g | |
| Free Shipping on Laptop and Desktops | data/freeship.html | Laptop+Desktops | application+csp | 012RM0000002Q5M |
| isMasterLanguage | Title | summary__c | description__c | datacategorygroup .Products | Channels | Language | RecordTypeId |
|---|---|---|---|---|---|---|---|
| 1 | Free Digital Camera Offer | Get the new Digital Camera. | data/freecam.html | Consumer_ Electronics | application +csp | en_US | 012RM0000002Q5M |
| 0 | Libérer l'Offre d'Appareil photo digital | Obtenir le nouvel Appareil photo digital. | data/freecam/fr.html | fr | 012RM0000002Q5M | ||
| 0 | Liberte Oferta Digital de Cámara | Consiga la nueva Cámara Digital. | data/freecam/es.html | es | 012RM0000002Q5M | ||
| 1 | Best Desktop Computer Deals | data/bestdeals.html | Desktops | application +csp | en_US | 012RM0000002Q5g | |
| 0 | Meilleures Affaires d'ordinateurs de bureau | data/bestdeals/fr.html | fr | 012RM0000002Q5g | |||
| 0 | Mejores Tratos de ordenadores | data/bestdeals/es.html | es | 012RM0000002Q5g | |||
| 1 | Free Shipping on Laptops and Desktops | data/freeship.html | Laptops+ Desktops | application +csp | en_US | 012RM0000002Q5M | |
| 0 | Libérer Affranchissement sur Portables et Ordinateurs | data/freeship/fr.html | fr | 012RM0000002Q5M | |||
| 0 | Liberte Franqueo en Laptops y Ordenadores | data/freeship/es.html | es | 012RM0000002Q5M |
Specify your import parameters in a property file using key names and corresponding values.

