How can I create a Knowledge Base for my Custom Application?

jordimsant
Tera Guru

I am creating a custom application that allows a user to automatically create a Catalog Item directly from a spreadsheet. Therefore, I want to store those spreadsheets in a Knowledge Base, so that anybody can go and ask which was the spreadsheet used to build a Catalog Item. However, I have tried to build a Knowledge Base and associate it to my custom application but I cannot find any option in Application Studio that allows me to create a Knowledge Base. How can I do it?

jordimsant_0-1737537245544.png

 

PD: I have already tried to create it from Background Script using the following code:

 

var gr = new GlideRecord('kb_knowledge_base');
gr.initialize();
gr.application = '8785fc4683c75a103719db226daad3c7';
gr.insert();

 

Once created, I tried to install the app into a PDI, but it hadn't recorded well the Knowledge Base, so I suppose this is not a good solution.

1 ACCEPTED SOLUTION

Mark Manders
Mega Patron

A knowledge base is not an application file, so it's not captured in your application. It's simply data (just like an article, or another record on your tables). You will need to either create an application file from it (select in list and use 'create application file') or create a fix script that runs on install of your application to create it from there.

 


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

View solution in original post

2 REPLIES 2

Mark Manders
Mega Patron

A knowledge base is not an application file, so it's not captured in your application. It's simply data (just like an article, or another record on your tables). You will need to either create an application file from it (select in list and use 'create application file') or create a fix script that runs on install of your application to create it from there.

 


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Thank you for your fast answer!