The field was updated, but the value was not pushed into the field.

bhanukota09
Giga Contributor
I am trying to push a value into a field using a background script. After running the script, it shows that the field was modified, but the value is not updated in the field. Could you please review the code and let me know the solution?
it's showing KB updated successfully 

var gr = new GlideRecord('kb_knowledge');

if (gr.get('KBarticle sys_id')) {

    gr.setWorkflow(false);

    gr.setValue('taxonomy_topic', 'value sys_id ');

    gr.update();

    gs.info('KB updated successfully');

}

1 REPLY 1

HarishKumar6668
Tera Contributor

HI @bhanukota09 ,

If your intention is to make a knowledge article available under a specific topic, you can use the Assigned Topics related list on the article form and add the required topic there — the Taxonomy Topic field will then be auto-populated automatically.Refer below screen shot.
Screenshot 2026-04-06 at 8.22.35 PM.png

 

If you find this useful, please mark it as Helpful or Accept it as the Solution.

Regards,
Harish