Newer Version Available

This content describes an older version of this product. View Latest

Knowledge__ka

Provides access to the concrete object that represents a Knowledge article, the parent object for article versions. This object is available in API version 39.0 and later.

By default, the prefix for this object name is Knowledge and that is the value shown in this reference. However, this prefix can be modified by changing the Object Name for the Knowledge__kav object in Object Manager.

Note

This object is derived from KnowledgeArticle.

Supported Calls

delete(), describeLayout(), describeSObjects(), query(), retrieve(), undelete()

Special Access Rules

Lightning Knowledge must be enabled in your org. A user must have the View Articles permission enabled. Salesforce Knowledge users, unlike customer and partner users, must also be granted the Knowledge User feature license.

Fields

Field Details
ArchivedById
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of the user who archived the article.
ArchivedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date when the article was archived.
ArticleNumber
Type
string
Properties
Autonumber, Defaulted on create, Filter, idLookup, Sort
Description
The unique number automatically assigned to the article when it's created. You can't change the format or value for this field.
CaseAssociationCount
Type
int
Properties
Filter, Group, Sort
Description
The number of cases attached to the article.
FirstPublishedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date when the article was first published.
LastPublishedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date when the article was last published.
LastReferencedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The timestamp when the current user last accessed this record, a record related to this record, or a list view.
LastViewedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The timestamp when the current user last viewed this record or list view. If this value is null, the user might have only accessed this record or list view (LastReferencedDate) but not viewed it.
MasterLanguage
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The article's original language. Only accessible if your knowledge base supports multiple languages.
MigratedToFromArticle
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The ID for the corresponding pre- or post-migration article. Contains values only in orgs that migrate from Knowledge in Salesforce Classic to Lightning Knowledge. This field is available in API version 45.0 and later.
TotalViewCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Total number of views for this article. This field is available in API version 39.0 and later.