How to get the variable values in flow designer

Sriram Pusuluri
Tera Contributor

Hi Team,

 

I have a flow designer, Once I submit the item, Ritm and sc_tasks are creating.

 

Now in sc_task short description I want to add one of the variable value in it.

 

SriramPusuluri_0-1766584428894.png

 

I have added above one in my flow designer Action, this is coming in below way

SriramPusuluri_1-1766584484270.png

 

Below is how my variable values are showing in catalog form

 

SriramPusuluri_2-1766584524320.png

 

How to do this? Do I need to create any other Action

 

 

14 REPLIES 14

@Ankur Bawiskar  type is select box

 

SriramPusuluri_0-1766585754708.png

 

Ankur Bawiskar
Tera Patron
Tera Patron

@Sriram Pusuluri 

I believe you must be having flow on your catalog item

Simply in that you can get the variable value using "Get Catalog Variables" flow action

What type of variable is that?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar 

 

this is select box type variable.

It is populating value in short description, but I need Text to display

SriramPusuluri_0-1766585444112.png

 

@Sriram Pusuluri 

if you use "Get Catalog Variables" flow action on choice variable it gives you the Text

if you are fetching the choice value using data pill, it will fetch the choice value and not label.

I shared solution for thing recently

How to display the choice text instead of its value in subject of request through Flow Designer. 

Solution

1) create a flow variable of type String

AnkurBawiskar_0-1766585781068.png

 

2) then use "Set Flow Variable" flow logic and use the script to fetch display value/choice label and set

AnkurBawiskar_1-1766585788694.png

 

3) then use this flow variable in your catalog task description from data pill

AnkurBawiskar_2-1766585820995.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar  I have created flow varaible type as string.

 

where can I set 2 nd point.

 

SriramPusuluri_0-1766586440715.png

 

 

SriramPusuluri_0-1766586596756.png