How to Filter or Branch on Nested Array Fields in Input Filters, Output Filters, and Branching

Tyler Lamparter
Thu, 09 Jan 2025 00:21:37 +0000
Integrator.io

Sometimes, you may need to filter or create branches in your flow based on a field that is nested within an array. Unfortunately, fields like these often don't appear in the dropdown menu, and entering them as an expression directly in the UI won't work either. For example, if you're looking for a field like order_lines.0.sku, it will not be available in the dropdown or directly usable in expressions within input filters, output filters, or branching rules.

The backend fully supports referencing nested fields, but the UI doesn't currently allow typing in fields that aren't in the dropdown. To work around this:

1. Use the ZangaBox Chrome Extension:
This tool allows you to directly edit and update the flow JSON without needing to use Postman or manually call APIs.

2. Steps to Edit Your Flow:

Open the ZangaBox extension while viewing your flow, export, or import.

Locate the filter, output filter, or branching rules you want to update.

Update the relevant field to include the nested array path (e.g., order_lines.0.sku).

Save the changes by clicking PUT.

We’re actively working on reimagining the branching and filter UI (hopefully this year) to address this issue. Future updates will also include support for Handlebars expressions in these scenarios.

5 posts - 2 participants