Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

To copy Select Box variable choice values to another table choice field

Servicenow12
Tera Contributor

To copy Select Box variable choice values to another table choice field ?

Below did not work for me , I wrote this in Workflow RunScript activity :

var gr = new GlideRecord('incident');

gr.initialize();
gr.assignment_group = current.variables.support_group.getDisplayValue();

gr.insert();
}

 

1 ACCEPTED SOLUTION

Mohith Devatte
Tera Sage
Tera Sage

Hello,

remove getdisplayValue() and try below

var gr = new GlideRecord('incident');

gr.initialize();
gr.assignment_group = current.variables.support_group;

gr.insert();
}

Hope this helps 

please mark my answer correct if this helps you

View solution in original post

10 REPLIES 10

Mahendra RC
Mega Sage

Hi,

Please check with below code:

var gr = new GlideRecord('incident');
gr.initialize(); // Also you can put gr.newRecord() and check once
gr.setValue('status', current.variables.app_status);
gr.insert();

Please mark my respsone as helpful/correct, if it answer your question.

Thanks