Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Scripting to update the record based on the field changes in RITM

Aswin Chandras1
Tera Contributor

Hi All,

I have below requirement to develop. Can anyone help me on this as am starting development couldn't get much on this.

 

 

 

If the "Preferred model" variable is modified to a non-Empty value for a Hardware or Software request, the RITM's "Short description" is constructed as follows:

If RITM is created from an order guide and "End user not available/created yet" variable is not defined or is FALSE, then <Catalogitem.name> + "-" + <preferredModel.normalizedProductName> + " " + <specificModel.shortDescription (if available)(truncated to only show the characters before the first comma) + "(" + <Orderguide.name> "): " + <Requested for>

ELSEIF RITM is not created from an order guide and "End user not available/created yet" variable is not defined or is FALSE, <Catalogitem.name> + "-" + <preferredModel.normalizedProductName> + " " + <specificModel.shortDescription (if available)(truncated to only show the characters before the first comma) + ": " + <Requested for>

ELSEIF RITM is created from an order guide and "End user not available/created yet" is TRUE, <Catalogitem.name> + "-" + <preferredModel.normalizedProductName> + " " + <specificModel.shortDescription (if available)(truncated to only show the characters before the first comma) + "(" + <Orderguide.name> "): " + <Requested for (end user)>

ELSEIF RITM is not created from an order guide and "End user not available/created yet" is TRUE, <Catalogitem.name> + "-" + <preferredModel.normalizedProductName> + " " + <specificModel.shortDescription (if available)(truncated to only show the characters before the first comma) + : " + <Requested for (end user)>

2) If the "Preferred model" variable is modified to an empty value, for a Hardware or Software request, the RITM's "Short description" is constructed as follows:

If RITM is created from an order guide AND 
   IF "End user not available/created yet" variable is not defined or is FALSE, then <Catalogitem.name> + " (" + <Orderguide.name> +"): " + <Requested for>,
   ELSE "End user not available/created yet" is TRUE,  then <Catalogitem.name> + " (" + <Orderguide.name> +"): "<Requested for (end user)>
ELSEIF RITM is not created from an order guide AND
   IF "End user not available/created yet" variable is not defined or is FALSE,  then <Catalogitem.name> +": " + <Requested for>,
   ELSE "End user not available/created yet" is TRUE, then <Catalogitem.name> +": " + <Requested for (end user)>

0 REPLIES 0