Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

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.