- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
@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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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
