Hi,
I have a workflow where I loop through multiple items.
For each item, I perform several actions (for example: extract some details, build a file, etc.).
At the end, I want to:
-
Send only one email per client (even if that client had multiple items).
-
After the email is sent, log all the individual items that were processed for that client, and include the email’s ID/reference in each logged record.
So effectively, one email should cover multiple iterations, but the logging step still needs to happen on a per-item basis, enriched with the email ID.
What would be the best way to structure this in n8n?
Is there a recommended pattern for:
-
doing multiple actions in a loop,
-
sending one notification per client,
-
and then writing back all the iteration details with the email reference?
Thanks!