When knowledge article attached KB content coping to case worknotes . How can we stop that . We don't need the content .

skkkk
Giga Contributor

When knowledge article attached KB content coping to case worknotes . How can we stop that . We don't need the content .

1 ACCEPTED SOLUTION

skkkk
Giga Contributor

Thanks Vinitha ,



Temporary   I done the create new field and through UI policy dine it . Still notification is coming . Have to fix .



Once again thanks for you help .


View solution in original post

31 REPLIES 31

Hi Vinitha, I am having trouble getting the KB sys id.  

With a BR I am trying:

var notes = current.close_notes;
if(notes.indexOf("Knowledge article")>=0);
var str = notes.toString();         
var res = str.substring(18, 27);                    this gets the correct KB article number
//var KBnum = res;
var kbGr = new GlideRecord('kb_knowledge');
kbGr.addQuery('number', res);                I think the problem is here but as I understand I pass res which has kb number and if there is a match it should return it. 
kbGr.query();
if(kbGr.next())
gs.log('Found1 ' +kbGr);    results in.  Found1 [object GlideRecord
gs.log('Found2 ' +res);                       Found2 KB0014306

Any advise appreciated 🙂

Thanks

 

 

vinitha3
Tera Guru

Please mark as correct answer if it has helped you out.



Thanks,


Vinitha.K


shloke04
Kilo Patron

Hi Hima,



You need to navigate to System properties(sys_properties.list) from the application search menu and then find this Property "glide.knowman.attach.fields". Simply remove the Work Notes from the Property value to stop attaching the knowledge content getting attached to work note field as shown below:



find_real_file.png



Hope this helps.Mark the answer as correct/helpful based on impact.



Regards,


Shloke


Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

skkkk
Giga Contributor

This one also I tried , no luck .




when we are preview and attach - it's not working . Without previewing


attach content is not coping . Which UI macro can we use this .



On Mon, Mar 13, 2017 at 6:16 PM, shloke04 <community-no-reply@servicenow.com


skkkk
Giga Contributor

Hi All,


find_real_file.png



Once i click the attach to case button knowledge content is coping to case work notes .


I don't want to copy the content .