Some PDIs are currently unavailable, and PDI actions are paused. View the latest updates here. Read More

Copy the Request Item Variables to Catalog TASK fields

Kusuma2
Kilo Guru

Hi All,

I want to copy the variables present in the variable editor of Req Item Form to Catalog TASK fields.

How Can I achieve?

Regards,

Ajay.

1 ACCEPTED SOLUTION

Then you can write OnBefore BR - Insert on Catalog Task. But this will always run whenever the new Task is getting created or you can set the specific item in the condition

var gr = new GlideRecord('sc_req_item');
gr.addQuery('sys_id', current.requested_item); //RITM sys_id
gr.query();
while(gr.next()){
current.description = gr.variables.variable_name;
current.description += gr.variables.variable_name;
current.update();
}

Thanks
Shashikant

Hit Helpful or Correct on the impact of response.

 

View solution in original post

5 REPLIES 5

Then you can write OnBefore BR - Insert on Catalog Task. But this will always run whenever the new Task is getting created or you can set the specific item in the condition

var gr = new GlideRecord('sc_req_item');
gr.addQuery('sys_id', current.requested_item); //RITM sys_id
gr.query();
while(gr.next()){
current.description = gr.variables.variable_name;
current.description += gr.variables.variable_name;
current.update();
}

Thanks
Shashikant

Hit Helpful or Correct on the impact of response.