Hi,
I’m working on a scenario to create invoices in Invoice Ninja from Airtable records. The goal is to generate separate multi-row invoices for each client based on their respective orders in Airtable.
Current Setup:
- Airtable: Search Records (Clients): Fetches all client records.
- Iterator (for Each Client): Iterates through each client record.
- Airtable: Search Records (Orders): Fetches all order records for the current client using a filter (Client ID from the iterator).
- Array Aggregator (for Orders): Aggregates orders for the current client.
- Invoice Ninja: Create an Invoice: Creates an invoice using the aggregated order array.
The second “Search Records” module correctly outputs 8 records (orders for three different clients). However, the Array Aggregator combines all 8 records into a single array, resulting in multiple identical invoices addressed to one client.
How can I adjust my scenario so that it iterates through the orders for each client individually, ensuring each invoice includes only the respective client’s orders?
Any help on this would be much appreciated!