Salesforce Knowledge Heroku Article Importer
Salesforce Knowledge Heroku Article Importer
Salesforce Knowledge Heroku Article Importer
Requirements
Knowledge articles enabled
Chatter enabled
KbApps package installed
Limits
Maximum zip file size is 50mb
Batch size:
◦ The default batch size is 50 records.
◦ Maximum batch size is 200 records.
◦ Maximum size of batch request is 50mb.
.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.
Each .csv file imports articles into one article type and maps the imported articles content with the article
type's fields. For example, a .csv file might map articles titles with the standard field Title in an article type,
meaning that each article's title is imported into the Title field.
.csv files can have article translations only to update process, translations for an Insert are excluded.
.cvs files must be comma separated values and each value wrapped with double quotes.
2. In the first row, specify the article type's fields and metadata (such as language data categories or
channels). Enter one item in each column. You can use the following fields and metadata to import content:
3. In subsequent rows, specify the articles you want to import. Use one row per article and enter the
appropriate information in each article type field column or metadata column.
Standard or custom fields—enter the articles' data for each field, except for rich text area fields
where you must enter the relative path to the corresponding .html file in your .zip file.
Rich text area field—always enter the .html file path relative to the location of the .csv file. Never
enter raw text. If the specified path doesn't exist, the related article is imported without Rich Text
Area field. Note the following information about importing HTML and images:
◦ We recommend that you create separate folders for the .html files (for example, /data) and the
images (for example, data/images).
◦ To import images, include the images in an .html file using the <img> tag and src attribute.
Ensure that the src value is a relative path from the .html file to the image folder.
◦ Images must be .png, .gif, or .jpeg files.
◦ Each image file can’t exceed 1 MB.
◦ .html files can’t exceed the maximum size for their field.
◦ If an .html file references a file that isn't allowed, the related article is imported without
insert/modify rich text area content.
◦ If an .html file references an image that's missing, the related article is imported without
insert/modify rich text area content.
File field—enter the path relative to the file's location. If the specified path doesn't exist, the related
article is imported without file. Note the following information about importing files:
◦ We recommend that you create a folder for your files (for example, /files).
◦ Each file must not exceed 5 MB.
Category groups—use category unique names to categorize articles. Use the plus symbol (+) to
specify more than one category. For example, Laptop+Desktop. Note the following information about
data category groups:
◦ Leaving the cell row empty on Insert process causes your article to be set to No Categories and
on Update process causes your article to doesn't update the category group.
◦ If you specify a category and its parent (for example, Europe+France) the import process take
the first value and all others values of the same level, and skip the values of the lower and higher
levels.
◦ The article translations have no associated data category\.
update.csv file:
"Title","Summary","UrlName","ArticleNumber","KnowledgeArticleId","PublishStatus","Channels","Language","IsMasterLanguage","Rich_Text_Area__c","File__c","datacategorygroup.Products"
"Free Digital Camera Offer","Get the new Digital Camera","URL-Name-1","83363","kA7E0000000LCLsKAO","Draft","application","en_US","1","data/
kA7E0000000LCLsKAO_RTA_1.html","files/kA7E0000000LCLsKAO_File_1.txt","Laptops+Desktops"
"Libérer l'Offre d'Appareil photo digital","Obtenir le nouvel Appareil photo digital.","URL-Name-1","83363","kA7E0000000LCLsKAO","Draft","","fr","0","data/freecam/fr.html","files/
kA7E0000000LCLsKAO_Fr_File_1.txt",""
"Best Desktop Computer Deals","","URL-Name-2","83470","kA7E0000000LCNbKAO","Draft","application+csp","en_US","1","data/bestdeals.html","files/
kA7E0000000LCNbKAO_RTA_1.pdf","Desktops"
"Meilleures Affaires d'ordinateurs de bureau","","URL-Name-2","83470","kA7E0000000LCNbKAO","Draft","","fr","0","data/bestdeals/fr.html","",""
Title Summ UrlNa Articl Knowle Publi Chann Langu IsMast Rich_T File__ datacateg
ary me e dge sh els age er ext_Are c orygroup.
Num ArticleI Statu Langu a__c Products
ber d s age
files/
Get data/ kA7E0
Free the kA7E00 kA7E00 00000
URL- Laptops+D
Digital new 00000L applica 00000L 0LCLs
Name- 83363 Draft en_US 1 esktops
Camer Digital CLsKA tion CLsKA KAO_
1
a Offer Camer O O_RTA File_1.
a _1.html txt
Meilleu
res
kA7E00 data/
Affaires URL-
83470 00000L bestdeal
d'ordin Name- Draft fr 0
CNbKA s/fr.html
ateurs 2
O
de
bureau
insert.csv file:
"Title","Summary","UrlName","PublishStatus","Channels","Language","IsMasterLanguage","Rich_Text_Area__c","File__c","datacategorygroup.Products"
"Free Digital Camera Offer","Get the new Digital Camera","URL-Name-1","Draft","application","en_US","1","data/kA7E0000000LCLsKAO_RTA_1.html","files/
kA7E0000000LCLsKAO_File_1.txt","Laptops+Desktops"
"Best Desktop Computer Deals","","URL-Name-2","Draft","application+csp","en_US","1","data/bestdeals.html","files/kA7E0000000LCNbKAO_RTA_1.pdf","Desktops"
Title Summar UrlNam Publi Channel Langua IsMaste Rich_Text_Ar File__c datacateg
y e sh s ge r ea__c orygroup.
Statu Langua Products
s ge
files/
kA7E00
Free Get the data/
00000L Laptops+D
Digital new URL- applicatio kA7E0000000
Draft en_US 1 CLsKA esktops
Camera Digital Name-1 n LCLsKAO_RT
O_File_
Offer Camera A_1.html
1.txt
files/
kA7E00
Best
00000L
Desktop URL- applicatio data/
Draft en_US 1 CNbKA Desktops
Computer Name-2 n+csp bestdeals.html
O_RTA
Deals
_1.pdf