I would like to bulk upload list of pdfs as attachments against knowledge articles. I think the documents are getting stored in ContentDocument, but how can I use dataloader to load attachments and link it against knowledge articles? Thanks.
Unfortunately, I don't think you can do this in one load. ContentDocumentLink is what you need to insert that'll have a lookup to the file and the Knowledge Article. Both of those records need to exist to insert these records.
- Dataload the files first. These are stored in the
- After inserting, export the files to get the
- Export your Knowledge Articles to get the Id of your articles.
ContentDocumentLinkrecords using the ContentDocument Id for
ContentDocumentIdand KnowledgeArticle Id for
LinkedEntityId. You'll also want to consider what values to set for
This obviously assumes you'd have an ability to figure out which file should go with which article based on the fields you have available (ex. title, file name). If you can't, I'm not sure you have another option.