Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

Variable values in a flow

AnthonyMull
Tera Contributor

Hi Community

 

I have an issue with a variable value in a flow, is there any easy way to see what value a variable is set to in a flow please?

 

Thanks in advance.

5 REPLIES 5

Ankur Bawiskar
Tera Patron

@AnthonyMull 

is this a flow variable?
you can add the value to log to confirm

share the flow steps screenshots and where are you stuck

💡 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  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Dinesh Chilaka
Tera Guru

Hi @AnthonyMull ,

First  we can use the Get catalog Variables flow action , get the variable that from available to selected bucket in the action.

Use the log action and log that variable to check the value stored in that variable

If my response helped, mark it as helpful and accept the solution

yashkamde
Kilo Sage

Hello @AnthonyMull ,

 

what action you are using?

what the requirement actually ?

As per the question you can use Get Catalog Variables and log them to see the value. ALSO if you want to see MRVS variable then parsing the mrvs object into custom action you can access them !

 

If my response helped mark as helpful and accept the solution.

Aditya_hublikar
Mega Sage

Hello @AnthonyMull ,

You can simply log that variable using the Log action in ServiceNow.

First, check what type of variable it is.  if it is a catalog variable, you need to first use the Get Catalog Variables action in Flow Designer and then log the value.

If the variable is an MRVS (Multi-Row Variable Set), you will need to iterate through it using a For Each loop and log the values inside the loop.

In the case of a flow variable, you can also log it by dragging the variable from the Data Pill picker into the Log action.

 

If this helps you then mark it as helpful and accept as solution.

Regards,

Aditya