Insert new record

charanpreet
Kilo Expert

I am trying to insert a new record to another table.

Issue is the record gets inserted but with the blank values.

var gr = new GlideRecord('asmt_m2m_category_assessment');

gr.initialize();

gr.assessment_record = current.vendor;

gr.category = current.u_it_resource_subtower;

                              gs.addInfoMessage(gr.assessment_record);

                              gs.addInfoMessage(gr.category);

gr.insert();

Output : for assessable record : sysid

gr.category : correct value

But the record created in the table does not have any value for any of the two columns.