How to map a field from a record producer using scripts

Dhanya
Kilo Contributor

Hi i need help with a catalog client script. i'm trying to pass a value from the record producer to the incident based on value selected by the user. I understand we cannot use current to refer to the incident form,

if ((producer.team)== 'MAC'){
g_form.setValue('assignment_group','MAC-Support');}

i need this value to be mapped to the field in incident. But this is not working.

15 REPLIES 15

Baatyr Patta
Tera Contributor

The code below worked for my requirement.

The variable in Record producer is choice type.

BaatyrPatta_1-1721999205716.png