- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2024 06:38 AM
Here is my code:
var ritmNumber = fd_data.trigger.current.request_item.number.toString();
var typeOfDecommission = fd_data._1__get_catalog_variables.FHx_Action; // .getDisplayValue() and .display_value don't work.
var justification = 'Component retirement triggered by ' + ritmNumber + ' - automatically opened. Type of decommission: ' + typeOfDecommission;
return justification;
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2024 04:34 AM - edited 05-11-2024 04:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2024 04:34 AM - edited 05-11-2024 04:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2024 10:59 AM
I ended up using a GlideRecord just like in the first link. Thank you very much!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2024 01:27 AM
Hi @conradofonseca,
You can replace the 2nd line of code with the following -
var typeOfDecommission = fd_data.trigger.request_item.variables.FHx_Action.getDisplayValue();
Cheers