KnowledgeArticleVersionHistory
Enables read-only access to the full history of an article.
Knowledge__VersionHistory is derived from this object. To access this derived object, turn on field history tracking for Knowledge objects.
Introduced in API version 25.0.
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
- Knowledge must be enabled in your org. This object respects field, entity, and record-level security. You must have at least “Read” permission on the article type or the field to access its history. For data category security, Salesforce determines access based on the categorization of the online version of an article. If there’s no online version, then security is applied based on the archived version, followed by the security of the draft version.
- Type: picklist
- Properties: Filter, Group, Nillable, Restricted picklist, Sort
- Introduced: API version 50.0
- Description: The type of data that is tracked in the history table.
- Possible values:
- Address — Address
- AnyType — AnyType
- AutoNumber — AutoNumber
- Base64 — Base64
- BitVector — BitVector
- Boolean — Boolean
- Content — Content
- Currency — Currency
- DataCategoryGroupReference — DataCategoryGroupReference
- DateOnly — DateOnly
- DateTime — DateTime
- Division — Division
- Double — Double
- DynamicEnum — DynamicEnum
- Email — Email
- EncryptedBase64 — EncryptedBase64
- EncryptedText — EncryptedText
- EntityId — EntityId
- EnumOrId — EnumOrId
- ExternalId — ExternalId
- Fax — Fax
- File — File
- HtmlMultiLineText — HtmlMultiLineText
- HtmlStringPlusClob — HtmlStringPlusClob
- InetAddress — InetAddress
- Json — Json
- Location — Location
- MultiEnum — MultiEnum
- MultiLineText — MultiLineText
- Percent — Percent
- PersonName — PersonName
- Phone — Phone
- Raw — Raw
- RecordType — RecordType
- SfdcEncryptedText — SfdcEncryptedText
- SimpleNamespace — SimpleNamespace
- StringPlusClob — StringPlusClob
- Switchable_PersonName — Switchable_PersonName
- Text — Text
- TimeOnly — TimeOnly
- Url — Url
- YearQuarter — YearQuarter
- Type: picklist
- Properties: Filter, Group, Restricted picklist, Sort
- Description: The type of event that is tracked in the history table.
- Possible values:
- KavArchived — Archived
- created — Created.
- fieldChanged — Field Changed
- KavPublished — Published
- KavPublishedNew — Published as new version
- locked — Record locked.
- unlocked — Record unlocked.
- KavRestored — Restored
- KavRevised — Revised
- KavTransCompleted — Translation Completed
- KavTransRevised — Translation Revised
- KavUnpublished — Unpublished
- Type: picklist
- Properties: Filter, Group, Nillable, Restricted picklist, Sort
- Description: Name of the tracked field.
- Type: picklist
- Properties: Filter, Group, Restricted picklist, Sort
- Description: The language that the article is written in, such as
FrenchorChinese (Traditional). Querying or searching articles in SOSL requires that you specify theLanguagefield in the WHERE clause. The language must be the same for all article types. - Possible values:
- en_US — English
- fr — French
- Type: anyType
- Properties: Nillable, Sort
- Description: The new value of the field that was changed.
- Type: anyType
- Properties: Nillable, Sort
- Description: The most recent value of the field before it was changed.
- Type: reference
- Properties: Filter, Group, Sort
- Description: The ID of the article.
- Relationship name: Parent
- Relationship type: relationship
- Type: picklist
- Properties: Filter, Group, Restricted picklist, Sort
- Description: The type of object that contains the field.
- Possible values:
- article — article
-
Type: reference
-
Properties: Filter, Group, Nillable, Sort
-
Description:
The ID assigned to a version of the article.
This is a polymorphic relationship field.
-
Relationship name: Version
-
Relationship type: polymorphic
- Type: int
- Properties: Filter, Group, Sort
- Introduced: API version 24.0
- Description: The number assigned to a version of an article.
Use this object to query events in the history of an article. For example, you can retrieve the number of edits a particular user has made to an article, how many times the article has been published, and so on.