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

 

 

1 ACCEPTED SOLUTION

@Sriram Pusuluri 

1 thing to check -> if that variable is select box then why it shows Search Icon

try this other way in script

Also check if there is any space in the variable name

var choiceLabel = fd_data.trigger.request_item.variables.addon_licence_project.getDisplayValue();
return choiceLabel;

💡 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

View solution in original post

20 REPLIES 20

@Sriram Pusuluri 

you need to add script by clicking that script icon

AnkurBawiskar_0-1766586504232.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 added below script

SriramPusuluri_0-1766590110989.png

and in description

SriramPusuluri_1-1766590170858.png

 

 

in Task descrption it is showing as empty

SriramPusuluri_2-1766590206039.png

 

@Sriram Pusuluri 

is that variable selected in "Get Catalog Variables" flow action?

it should work fine

💡 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  

 

Yes it is available

SriramPusuluri_0-1766593436045.png

 

SriramPusuluri_1-1766593512780.png

 

@Sriram Pusuluri 

did you check if flow variable is getting populated or not?

I am surprised as that variable is Select box then why Lookup icon is shown

💡 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