Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2024 11:28 PM
Hi,
Yes the import API is creating the change request
I also tried it in OnAfter script:
Below is the script that I am using
var gr = new GlideRecord('table_name'); //table_name is my custom table name
gr.addQuery('u_configuration_item.operational_status', '1');
gr.query();
while (gr.next()) {
var taskCR = new GlideRecord('task_ci');
taskCR.initialize();
taskCR.task = target.sys_id;
taskCR.ci_item = gr.u_configuration_item;
taskCR.insert();
}