RITM SD and Desc Sync from Variables

nameisnani
Mega Sage

Hi Team ,

 

For this particular catalog item , what ever short desp and desp user enters 

 

nameisnani_0-1711340469599.png

 

That has to populate in RITM 

 

nameisnani_1-1711340614728.png

 

NOTE - Only for this Particular Catalog .

 

Please provide script , and please provide screenshot for better understanding .

 

currently it is taking this short desp 

nameisnani_0-1711340993462.png

 

nameisnani_1-1711341016532.png

 

 

there are the 2 variables 

nameisnani_0-1711340765396.png

 

 

Thanks in advance 

 

Please provide screenshot for better understandig

 

1 ACCEPTED SOLUTION

Arun B
Tera Expert

hi @nameisnani ,

You can write a before insert BR on sc_req_item table like below.

Select the item here.

 

ArunB_0-1711342378673.png

Script as below

ArunB_1-1711342539252.png

 

Please mark as helpful if this solves your issue. Thanks!

 

View solution in original post

4 REPLIES 4

Arun B
Tera Expert

hi @nameisnani ,

You can write a before insert BR on sc_req_item table like below.

Select the item here.

 

ArunB_0-1711342378673.png

Script as below

ArunB_1-1711342539252.png

 

Please mark as helpful if this solves your issue. Thanks!

 

nameisnani
Mega Sage

Hi @Arun B 

 

Thanks for response let me test 

Dhananjay Pawar
Kilo Sage

Hi,

You can write before insert BR on RITM table like below and add below code in code section.

 

Add the condition for particular catalog so it will not affect other catalogs.

 

(function executeRule(current, previous /*null when async*/) {

    current.short_description=current.variables.company;// here change the variable name
    current.description=current.variables.city;// here change the variable name

})(current, previous);
 
Screenshots for more understanding.
 
Thanks.

 

Amit Verma
Kilo Patron
Kilo Patron

Hi @nameisnani 

 

This catalog item is mapped to a flow or a workflow ? If flow, you can make use of Get Catalog Variables Action followed by Update Record action to first get your variable values and update it to the RITM.

 

Thanks and Regards

Amit Verma


Please mark this response as correct and helpful if it assisted you with your question.