Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
use_count is not incremented when article is attached through Attached Knowledge related list - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • use_count is not incremented when article is attached through Attached Knowledge related list
KB0779072

use_count is not incremented when article is attached through Attached Knowledge related list


889 Views Last updated : Apr 8, 2024 public Copy Permalink
KB Summary by Now Assist

Issue

When attaching an article to the incident form via the Attached Knowledge related list, use_count isn't updated.

Steps to Reproduce:

1. Open kb_knowledge and kb_use tables.
2. Observe use_count of an article.
3. Open an incident.
4. On Attached Knowledge tab, click Edit.
5. Attach article from step 2.
6. Observe use_count value hasn't increased.

 

Cause

This is expected behavior.

Resolution

The best practice is to attach the articles by clicking on the "knowledge search" next to short description and then click on "Attach to incident" or enable the Contextual Search on short description and attach the articles to the incident. Doing so causes the following to happen:
1. When the KB article is attached to the incident, the KB article link is visible in the Related Records related list Attached Knowledge section
2. The business rule "Create m2m_kb_task record on attach" is triggered which calls the script include - KnowledgeAjax
3. The script include has the code which triggers the event - KB Use which creates the record in the kb_use table and updates the use count

Currently, these events don't happen when a knowledge article is directly added via the Attached Knowledge related list.


The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.