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.

1 ACCEPTED SOLUTION

suraj sengar
Mega Guru

@AnthonyMull - In ServiceNow Flow Designer, there isn’t a built‑in “watch window” like you’d find in a traditional IDE, but there are a few easy ways to check what value a variable is holding while your flow runs:


Few Ways to See Variable Values
Use Log/Debug Actions

Add a Log action in your flow where you want to check the variable.

Output the variable value to the system logs.

Example: Log: Variable X = ${variable_name}.

You can then view this in System Logs > Application Logs.

Add a Notification Step

Temporarily add an Email or Slack notification step that sends the variable value to you.

This is useful if you want to see the value without digging into logs.

Use Flow Execution Details

After running the flow, open the Flow Execution Details from the Flow Designer.

Expand the step where the variable is used — you’ll see the inputs and outputs, including the variable values at that point.

Test with Scratchpad Variables

If you’re debugging complex logic, you can store values in a scratchpad or temporary field on a record, then check the record directly.

View solution in original post

5 REPLIES 5

suraj sengar
Mega Guru

@AnthonyMull - In ServiceNow Flow Designer, there isn’t a built‑in “watch window” like you’d find in a traditional IDE, but there are a few easy ways to check what value a variable is holding while your flow runs:


Few Ways to See Variable Values
Use Log/Debug Actions

Add a Log action in your flow where you want to check the variable.

Output the variable value to the system logs.

Example: Log: Variable X = ${variable_name}.

You can then view this in System Logs > Application Logs.

Add a Notification Step

Temporarily add an Email or Slack notification step that sends the variable value to you.

This is useful if you want to see the value without digging into logs.

Use Flow Execution Details

After running the flow, open the Flow Execution Details from the Flow Designer.

Expand the step where the variable is used — you’ll see the inputs and outputs, including the variable values at that point.

Test with Scratchpad Variables

If you’re debugging complex logic, you can store values in a scratchpad or temporary field on a record, then check the record directly.