The CreatorCon Call for Content is officially open! Get started here.

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.

1 ACCEPTED SOLUTION

I used getDisplayValue() and setDisplayValue and it worked.


View solution in original post

14 REPLIES 14

BALAJI40
Mega Sage

Hi kaur,



May be on that table you do not have read acl. Please check the acl and try.


Hi balaji,



There are ACLs configured for write and create operation with role assessment_admin.


Will this make any difference while creating a new record through business rule.


Also I cannot do any changes in the ACL


Hi ,



from where you fetching data ? from Catalog or from table?