How to create Knowledge Article using ATF?

vish1
Kilo Contributor

Hi All,

I am trying to create a ATF to create HR Knowledge Article. However I am unable to select Knowledge Base as a field itself when I have selected Set Field Values Operation for Table kb_knowledge.

It does not come in the list of fields and hence, I am unable to populate Knowledge base and the script fails.

Please advise.

Thanks,

Vish

1 ACCEPTED SOLUTION

Jace Benson
Giga Sage

I had this same problem.  To solve it I had to run this as a background script.

It corrected it;

var gr = new GlideRecord('sys_atf_step');
gr.get('f1a43c15db0123008096a455ca961915');
var fields = gr.inputs.field_values.toString();
gs.info(fields);
fields = fields.replace('^EQ','^kb_knowledge_base=dfc19531bf2021003f07e2c1ac0739ab^EQ');
gs.info(fields);
gr.inputs.field_values = fields;
gr.update();

View solution in original post

6 REPLIES 6

vish1
Kilo Contributor

Hi Shreya,

I am using London release and I do not see the knowledge base field in ATF when Knowledge Base table is selected. I had checked this with many colleagues of mine and it seems to be a generic issue.

Are you using Madrid Release? Can you provide the screenshot if possible.

RR16
Tera Expert

Hey Shreya,

Your info worked in Madrid.

Thanks!