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:
-
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. -
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.