Add user criteria to Knowledge Base programmatically

Tuan Anh
Kilo Contributor

Is it achievable to automatically add an user criteria to a knowledge base (for example through business rule/after inserting etc). Can we achieve this programmatically using API or anything? I also want to know where the criterias added to a Knowledge Base is stored in the database and whether it is good practice to access and manipulate them. Thank you in advance!

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you can use script to create it from script

I don't think any API exists to create that

this table holds the mapping of user criteria with KB base -> kb_uc_can_read_mtom

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you can use script to create it from script

I don't think any API exists to create that

this table holds the mapping of user criteria with KB base -> kb_uc_can_read_mtom

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hello,

So I used GlideRecord directly in business rule to create a new mapping item whenever I create a new knowledge, do you think it is a good practice? By the way can you show me the document where I can find these kind of tables related to the UC? (mapping with service catalog, sp etc...)

Many thanks!!

Tuan Anh

 

Hi,

I won't suggest use script.

for checking tables you can visit the KB base, related list table check

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

HI Ankur,

Can you please help me with the below query?

How can we add User criteria on the 'std_change_proposal' table?
OOB User criteria is not available on 'std_change_proposal' table and we are not even able to add it from the related list. Is there any way to add User criteria i,e Available for, Not available For on the 'std_change_proposal table'?