- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-03-2018 06:51 AM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-03-2018 07:08 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-03-2018 07:08 AM
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.