Goran WitchDoc
ServiceNow Employee
ServiceNow Employee

So, the question has been asked: I can attach an article to an incident, but how can I see which incidents has been attached to a specific article. Before I go on, I would like to mention that I have only found this working with the Contextual Search Results which looks like this on a form:

find_real_file.png

If you still use the old "book" that looks like this, and then pressing the "Attach to incident" button on the article.

Well, then you can stop reading, since then the rest of this article won't work.

find_real_file.png

But anyway, here we go.

Some may have found the table kb_use, which give a small bit of information on the articles and it looks like this:

find_real_file.png

Others might have found the related list "Knowledge   Use" that you can add on a article. It looks like this:

find_real_file.png

As you might notice it's pretty much the same. After a little bit of testing you will notice that if you press the attach-button

find_real_file.png

you will then get a "true" on the Used column. But you will have no idea which article it has attached itself too.

Now, our luck has turned. There is another table that takes care of this and saves us some useful information.

That table is cxs_rel_doc_detail. There isn't so much information about it on the docs, but a quick search gives us this:

"Contains details of the search result record that users have indicated as useful or have attached to a form, as well as the search terms used to query the knowledge base."

Which shows us that we are on the right track here. looking at the columns we got info both on which article and which record it was attached to.

find_real_file.png

If you look at the column "Relevance type" you can see that it also saved information about the "this helped" function that you got on the articles. But right now we are focusing on the attach function.

Now, what's pretty annoying is that they have chosen almost identical column names for both the article and the record it got attached to. Only different is that document is spelled with capital letter on one and lowercase letter on the other one.

Well, the one with capital "Relevant Document" is the on carrying the sys_id of the record. Easier to see since the other one is not showing a sys_id.

Now, people in your organisation probably want to have a nice looking report to see instead of creeping around in tables and list views.

So I created a report, sadly I don't have so much demo data for it, so it doesn't look like much. But take this as a simple example.

find_real_file.png

Well, that's all for today, hope this get you digging deeper into knowledge and all of its fun.

4 Comments