---
schema_version: "1"
id: 44b9bd3c1e3fc6b45ed74a14c7781a28fb98c64ecd185654095492c3fe71f64d
title: KnowledgeArticle
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_knowledgearticle.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_knowledgearticle.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 146abd9966416bc6d8b589403b55d55a277f51b01c9913f460aeb07f151a0b14
description: Provides read-only access to an article and the ability to delete the primary article. This object is available in API version 19.0 and later.
---
# KnowledgeArticle

Provides read-only access to an article and the ability to delete the primary article. This object is available in API version 19.0 and later.

![Important](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/images/icon_note_important.png)

#### Important

Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain terms to avoid any effect on customer implementations.

Unlike KnowledgeArticleVersion, the ID of a KnowledgeArticle record is identical irrespective of the article's version (status).

[Knowledge\_\_ka](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_knowledge__ka.htm "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.") is derived from this object.

## Supported Calls

describeSObjects(), query(), retrieve()

## Special Access Rules

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 Name | 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.



 |
| IsGeneratedByLlm | 

Type

boolean

Properties

Defaulted on create, Filter, Group, Sort

Description

True if the first version of an article was created with an LLM. This object is available in API version 59.0 and later.



 |
| 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 has not viewed this record or list view, though they might have accessed it (LastReferencedDate)



 |
| 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.



 |

## Usage

Use this object to query or retrieve articles. KnowledgeArticle can be used in a SOQL clause, but doesn’t provide access to the fields from the article. Provides read-only access to an article and the ability to delete the primary article.

## Usage for SOQL with KnowledgeArticle

To expose the migrated\_to\_from\_id column on KnowledgeArticle and KnowledgeArticleVersion to the sObject API: expose MigratedToFromArticle in KnowledgeArticle.

For SOQL:

- To filter by MigratedToFromArticle, remove any other filters.
- When filtering by MigratedToFromArticle, use the '=' or 'IN' operator.
- When filtering by MigratedToFromArticle, the value can't be null or empty.

#### See Also

- [KnowledgeArticleVersion](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_knowledgearticleversion.htm "Provides a global view of standard article fields across all types of articles depending on their version. This object is available in API version 18.0 and later.")