"For Each" OOB Function Failing in Subflow for MRVS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2025 04:32 AM
I am working on a subflow where I need to loop through each value in a Multi Row Variable Set (MRVS) using the out-of-the-box For Each function. This works fine in the main flow for the same catalog item and MRVS, but in the subflow I get this error:
{ "Create Policy": [ { "action": "allow", "application_inspection": "icmp", "destination_group": null, "destination_ip": "2.2.2.2", "destination_security_zone": "any", "group_rules_by_tag": "Mainframe", "rule_name": "Ak_test1", "service_service_group": null, "source_group": null, "source_ip": "1.1.1.1", "source_security_zone": "any", "update_policy": false }, { "action": "deny", "application_inspection": null, "destination_group": "ansible_test1", "destination_ip": null, "destination_security_zone": "any", "group_rules_by_tag": "Mainframe", "rule_name": "Ak_test2", "service_service_group": "tecp-123", "source_group": "ansible_test1", "source_ip": null, "source_security_zone": "any", "update_policy": false }, { "action": "allow", "application_inspection": "icmp", "destination_group": "ansible_test1", "destination_ip": "5.5.5.5, 6.6.6.6", "destination_security_zone": "any", "group_rules_by_tag": null, "rule_name": "Ak_test3", "service_service_group": "tcp-123", "source_group": "ansible_test1", "source_ip": "3.3.3.3, 4.4.4.4", "source_security_zone": "any", "update_policy": false } ] }
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2025 05:12 AM
please share some screenshots.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2025 05:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2025 05:40 AM
I could see you are getting the catalog variable from catalog task?
Is that true?
I will suggest to pass the MRVS data from main flow to this subflow as input.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2025 05:56 AM
The subflow is getting called from ITOM framework through mapping.
I changed the selection from catalog task to RITM and again tested the flow. I got the same error.
We are using ITOM process and we have added mapping for automation enabled. This subflow is created to run the automation for one of the requirement. The subflow is not directly getting called from the catalog flow but from Mapping flow. We can get info about the RITM and Catalog from that. I compared the value of the MRVS in both catalog flow and the automation subflow, it is same.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2025 06:04 AM
are you able to get MRVS value in subflow?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader