Copy variables

Asmita7
Tera Expert

Hello Team,

 


}

2 ACCEPTED SOLUTIONS

Karunakaran
Mega Guru

Hi @Asmita7 ,

 

In this case, the trigger should be when the Disposal order is getting closed.

 

To update the worknotes from disposal order to catalogue task and RITM,

After the trigger use the core action "update record" using the disposal order trigger record from the flow designer

 

You can script the worknotes or copy it from Data available in the flow.

 

Please let me know, if you need more information.

 

Thank you.

 

Regards,

Karunakaran.

View solution in original post

Sohail Khilji
Kilo Patron
Kilo Patron

Hi @Asmita7 ,

 

Try :

 

var RITM1 = new GlideRecord('u_disposal');
RITM1.addQuery('u_order', current.number); 
RITM1.query();
var workNote = '';
if (RITM1.next()) {
    workNote = 'The Order Disposal location is ' + RITM1.ship_to.location.getDisplayValue();
}
return workNote;

☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect

View solution in original post

2 REPLIES 2

Karunakaran
Mega Guru

Hi @Asmita7 ,

 

In this case, the trigger should be when the Disposal order is getting closed.

 

To update the worknotes from disposal order to catalogue task and RITM,

After the trigger use the core action "update record" using the disposal order trigger record from the flow designer

 

You can script the worknotes or copy it from Data available in the flow.

 

Please let me know, if you need more information.

 

Thank you.

 

Regards,

Karunakaran.

Sohail Khilji
Kilo Patron
Kilo Patron

Hi @Asmita7 ,

 

Try :

 

var RITM1 = new GlideRecord('u_disposal');
RITM1.addQuery('u_order', current.number); 
RITM1.query();
var workNote = '';
if (RITM1.next()) {
    workNote = 'The Order Disposal location is ' + RITM1.ship_to.location.getDisplayValue();
}
return workNote;

☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect