Variable values in a flow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours 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 hours 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
2 hours 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
2 hours 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
