How to populate variable value to description of the requested item??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2022 04:36 AM
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....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2022 04:39 AM
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]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2022 04:43 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-03-2022 05:25 PM
Cannot agree more onto this!!! Such a small thing, but later would lead in unnecessary debugging efforts.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2022 04:42 AM
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.