updateViewStat(articleOrVersionId)

Increases the article view count of a KnowledgeArticle or KnowledgeArticleVersion record.

updateViewStat uses this Knowledge Article View Stat Resource.

Parameter NameTypeDescriptionRequired?
articleOrVersionIdStringThe ID of the KnowledgeArticle or KnowledgeArticleVersion record.Yes

This example shows how you can provide the record context to the articleOrVersionId parameter using @api recordId.

This button calls the updateViewStat() method.