Update INC Work Notes from Change on RITM

Dillin  Bradley
Tera Expert

Hello,

 

Im looking to get some Field values passed from an RITM to an INC,

 

We currently have a Shipping number field on our SC_REQ_ITEM table named u_tracking_send. How can I pass this value into the worknotes of the INC that was used to create the REQ and RITM. The REQ is the parent of the RITM and the INC is the parent of the REQ. I would like to pass the following as a work note to the INC. "{cat_item} has shipped. Tracking #: {u_tracking_send}

 

How would I accomplish this?

1 ACCEPTED SOLUTION

Aman Kumar S
Kilo Patron

Hi @Dillin Bradley 

You can have an after update BR on the RITM table and condition can be set as :

Tracking send is not empty AND Tracking send changes

 

In the script you can write something as:

var incGR = new GlideRecord("incident");

if(incGR.get(current.request.parent)){

incGR.work_notes = current.cat_item.name + "has shipped. Tracking #:" +current.getValue("u_tracking_send");

incGR.update();

 

 

}

Best Regards
Aman Kumar

View solution in original post

3 REPLIES 3

Aman Kumar S
Kilo Patron

Hi @Dillin Bradley 

You can have an after update BR on the RITM table and condition can be set as :

Tracking send is not empty AND Tracking send changes

 

In the script you can write something as:

var incGR = new GlideRecord("incident");

if(incGR.get(current.request.parent)){

incGR.work_notes = current.cat_item.name + "has shipped. Tracking #:" +current.getValue("u_tracking_send");

incGR.update();

 

 

}

Best Regards
Aman Kumar

Thank you so much! That worked!

Awesome, glad to be of help!

Best Regards
Aman Kumar