updateViewStat(articleOrVersionId)
Increases the article view count of a KnowledgeArticle or KnowledgeArticleVersion record.
updateViewStat uses this Knowledge Article View Stat Resource.
| Parameter Name | Type | Description | Required? |
|---|---|---|---|
articleOrVersionId | String | The ID of the KnowledgeArticle or KnowledgeArticleVersion record. | ![]() |
data— An empty objecterror—FetchResponse
This example shows how you can provide the record context to the articleOrVersionId parameter using @api recordId.
This button calls the updateViewStat() method.
