Change request Table

Harshad0405
Tera Contributor

How to create a relationships between catalog task and change request table?

1 ACCEPTED SOLUTION

Chaitali_Vale
Mega Sage
Mega Sage

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 :

Chaitali_Vale_2-1696506989533.png

 

Please mark my solution correct or helpful, if applicable.
Thanks & Regards,
Chaitali Vale

 

 

View solution in original post

1 REPLY 1

Chaitali_Vale
Mega Sage
Mega Sage

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 :

Chaitali_Vale_2-1696506989533.png

 

Please mark my solution correct or helpful, if applicable.
Thanks & Regards,
Chaitali Vale