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

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

I tried already . It was not copying the choice value in table from variable

hello,

make sure that both the fields have same choice values .Then only it will be mapped

Ok...Let me double check it