- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-05-2023 04:51 AM
How to create a relationships between catalog task and change request table?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-05-2023 04:57 AM
Hello @Harshad0405 ,
Please follow the below scripting to do relationship between Catalog Task & Requested Item :
Got to navigation search "Relationships" under System Definition -> Create New.
var chg = new GlideRecord('change_request');
chg.setValue("parent",current.sys_id);
if(chg.get(current.rfc)){
if(chg.parent == ''){
chg.parent = current.sys_id;
chg.update();
}
}
For more clarity check the below Screenshot :
Please mark my solution correct or helpful, if applicable.
Thanks & Regards,
Chaitali Vale
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-05-2023 04:57 AM
Hello @Harshad0405 ,
Please follow the below scripting to do relationship between Catalog Task & Requested Item :
Got to navigation search "Relationships" under System Definition -> Create New.
var chg = new GlideRecord('change_request');
chg.setValue("parent",current.sys_id);
if(chg.get(current.rfc)){
if(chg.parent == ''){
chg.parent = current.sys_id;
chg.update();
}
}
For more clarity check the below Screenshot :
Please mark my solution correct or helpful, if applicable.
Thanks & Regards,
Chaitali Vale