13 views

Symptoms


Clone the Out of Box widget of "KB Article Page" in scoped application, the following error message occurs  "Function incrementViewCount is not allowed in XXX scope".

Release


All Release 

Cause


GlideRecord's incrementViewCount method is not available to a scoped application. So the error message is the expected behaviour

Resolution


GlideRecord.incrementViewCount logic can be replicated by just adding 1 to the current value of the sys_view_count field of the kb_knowledge table in any GlideRecord update.

 

Article Information

Last Updated:2018-09-11 17:01:25
Published:2018-08-29