Flow Designer - Update description to show the display value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi all,
Back again for help!
I'm new to using Flow Designer (previously always used Workflow Editor.
I'm trying to update the Flow to pull a short description from the request details.
[item name] - [type_of_request(variable)] - [Requested For]
I have done this using a Get Catalog Variables and then an update record. It works except that the type_of_request is pulling the value (line_manager) instead of the display name (New Line Manager).
How do I configure this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Hi @Cat,
Please use a data pill to access such information and dot walk as in the below attachment. Data Pill Picker will be the icon before your minus sign
Dot walking to the short description
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
I'm trying to use the display value of a selected variable:
I need it to show the display name of the choice selected
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
The Get Catalog Variables action in Flow Designer cannot fetch the display value of a Select Box variable.
It only gives you the value (like line_manager), not the readable name (like New Line Manager).To get the display value, you must use JavaScript inside a Script step in Flow Designer.
You can use this simple code (replace <variable name> with your actual variable name):
Javascript:return fd_data.trigger.request_item.variables.<variable name>.getDisplayValue();If you only need the variable value (not the display label), then Get Catalog Variables is enough.
But whenever you need the display text, then JavaScript is the only way.
----------------------------------------------------------------------------------------------------------------------
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
41m ago - last edited 40m ago
Hi @Cat,
The Get Catalog Variables action return the variable value not the display value. In order to get the display value use scripting.
- Create a flow variable:
Add Set Flow Variables flow logic, and add the script:- And paste this script
return fd_data.trigger.request_item.cat_item.name + " - " + fd_data.trigger.request_item.variables["type_of_request"].getDisplayValue() + " - " + fd_data.trigger.request_item.requested_for.name;Now you can use this short description in your flow.
If my response helped, please mark it as the accepted solution so others can benefit as well.
Muhammad Iftikhar
If my response helped, please mark it as the accepted solution so others can benefit as well.
