How to populate variable value to description of the requested item??

Alexa alexa
Tera Contributor

variable of the catalog item :- Justification or description

want to copy the text of justification or description variable to description of the requested item.

Can anyone help me with script??

thanks in advance....

7 REPLIES 7

Kalyani Jangam1
Mega Sage
Mega Sage

Create BR script on RITM

Onbefore  inssert/update

 

current.short_description=current.variabels.v_short_description

or

current.short_description=current.variables[v_short_description]

Forgive me friend, that is NOT advisable.

You don't create business rules for logic that can be contained within the flow.  Both legacy Workflow Editor and Flow Designer achieve this.

By taking the logic external you make the total solution much more difficult to support.  How will future admins know that changing a catalog item will also involve changing logic you've moved external to it?

Further, you set a very scary standard to regularly pull logic from workflow to reside in the business rules table.

Cannot agree more onto this!!! Such a small thing, but later would lead in unnecessary debugging efforts. 

Uncle Rob
Kilo Patron

If you're using flow designer, you don't need a script.  Just drag the Justification variable data pill into the created Requested Item's description field along with any other text you want to frame it with.

I do something very similar in this video.  The magic happens around the 4 minute mark.