Skip to main content
Backup support for knowledge articles

How Gearset backs up __kav records, KnowledgeArticleVersion, kav

Alex Walter avatar
Written by Alex Walter
Updated over 8 months ago

Recently Gearset introduced the ability to back up Salesforce Knowledge as part of the Data backup feature:


Which objects are these?

Gearset can now back up articles that feature in the knowledge section of your Salesforce org (in Classic mode):
​

By default, they will be listed as so in the Knowledge view:
​


How are they listed in Gearset?

We back up these articles and save them under each specific Article Type along with a suffix of __kav, similarly to how Salesforce classifies the Articles:

Default Knowledge articles are saved as Knowledge__kav records. If you have a custom Knowledge Article Type, such as this AbcCustomArticleType:

The records will be backed up as AbcCustomArticleType__kav objects:

There are other associated objects that will be backed up alongside the main __kav object:


Why is KnowledgeArticleVersion still listed as unsupported?

When you look at the Unsupported objects list on a backup job creation or editing, you may see that the following KnowledgeArticle... objects are not supported:

We do actually back up these objects for their specific Article Type, but they are not stored as KnowledgeArticle... as Salesforce does not allow us to retrieve KnowledgeArticle... objects without specifying the type. The actual data is backed up as <ArticleName>_kav, the associated objects are backed up as <ArticleType>_<suffix>.
​
For our example above AbcCustomArticleType__kav, the supported objects map as follows:

KnowledgeArticle

AbcCustomArticleType__ka

KnowledgeArticleVersion

AbcCustomArticleType__kav

KnowledgeArticleVersionHistory

AbcCustomArticleType__VersionHistory

KnowledgeArticleViewStat

AbcCustomArticleType__ViewStat

KnowledgeArticleVoteStat

AbcCustomArticleType__VoteStat

How about Lightning knowledge articles?

Gearset also supports Lightning Knowledge articles, these are all stored as records of object type Knowledge__kav. The record type is defined in the RecordTypeId. Accordingly, the supported objects map as follows:

KnowledgeArticle

Knowledge__ka

KnowledgeArticleVersion

Knowledge__kav

KnowledgeArticleVersionHistory

Knowledge__VersionHistory

KnowledgeArticleViewStat

Knowledge__ViewStat

KnowledgeArticleVoteStat

Knowledge__VoteStat

Any questions about how to deploy Knowledge Articles? Check this article
​

If you have any further questions feel free to reach out to us via the in-app chat.

Did this answer your question?