Flow Designer - Update description to show the display value

Cat
Giga Guru

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?

4 REPLIES 4

Kamva
Giga Guru

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 descriptionDot walking to the short description

I'm trying to use the display value of a selected variable:

Cat_0-1769521499443.png

I need it to show the display name of the choice selected

kalanidhikr
Tera Contributor
  • 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&colon;
    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.

M Iftikhar
Tera Sage

Hi @Cat,

 

The Get Catalog Variables action return the variable value not the display value. In order to get the display value use scripting. 

  1. Create a flow variable:
    MIftikhar_1-1769521681068.png
    MIftikhar_2-1769521736980.png

  2. Add Set Flow Variables flow logic, and add the script:
    MIftikhar_5-1769522303214.pngMIftikhar_6-1769522342039.png

     

  3. 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;

MIftikhar_7-1769522578128.png

Now you can use this short description in your flow.

MIftikhar_0-1769523590041.png

 

If my response helped, please mark it as the accepted solution so others can benefit as well.

 

Thanks & Regards,
Muhammad Iftikhar

If my response helped, please mark it as the accepted solution so others can benefit as well.