kindly help me, I’m new to n8n and need some assistance with my current workflow setup.
Use Case
I have two lists:
Expenses: A list of expense items.
Transactions: A list of transaction items.
Goal
I want to match each expense with a transaction. Specifically, I need to:
Loop through each expense.
For each expense, loop through the transactions to find a match.
When a match is found, remove the matched expense and the corresponding transaction from their respective lists to prevent duplicates in the next iterations.
Store the matched data temporarily.
Return the final results after all matches are processed.
Problem
I’m struggling to find a way to store temporary data for the matched expenses and transactions and to properly remove matched items from the lists. Could someone guide me on how to achieve this in n8n?
Details About Environment.
Using cloud N8N , Database is on bubble , i am sending the data from bubble api to n8n webhook triggering it.
Keep in mind that if you are going to delete items from the list based on their position (like in Google/MS Sheets), then you’ll have to reverse their order before deletion. Otherwise after the first deletion the positions of the rest items will change.