Knowledge article display attachments button

Wasd123
Tera Expert

How can I make the "Display attachments" tick box to be ticked automatically when an attachment is added to the Knowledge article?

3 REPLIES 3

Allen Andreas
Administrator
Administrator

Hi,

Do you want this to happen after the attachment is made in a business rule? If so, create the "after" business rule on "insert" for the attachment table with the condition that the table is kb_knowledge. Then set the kb_knowledge display attachment checkbox to true with a script something like this:

var kbA = new GlideRecord('kb_knowledge');
kbA.get(current.table_sys_id);
kbA.setValue('display_attachments', true);
kbA.update();

Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

camiri
Kilo Contributor

Introducing our innovative 'Knowledge Article Display Attachments Button' feature, designed with your convenience in mind. Now, accessing essential information on Private Toto Recommendations is easier than ever. Stay informed and make informed choices effortlessly with this user-friendly tool.

Ian Phillips
Tera Contributor

Rather than using a script? Have you tried adjusting your default values in your knowledge base to always have Display Attachments set to 'True'?  That way when a new article is created for that knowledge base, you are asked to apply that as a default value?