Creating a standard change requets

Alamelu1
Tera Contributor

In my transform script code to create an incident record, i have the below code, 

target.type = "standard";

to create a standard type change. But off late, in the recent releases, this code is not being honoured and a normak change request is getting created by default.

I tried the below piece of code as well, but it does not help

var chg_model = new GlideRecord('chg_model');
chg_model.addQuery('name', 'Standard');
chg_model.query();
while (chg_model.next()) {
target.chg_model = chg_model.getValue('sys_id');
}

target.type = "standard";

 

I still only get a normal request being created.

0 REPLIES 0