Hi there,
I'm attempting to build a flow which goes to an external API retrieves a list of recent tickets, compares this list of tickets to an excel sheet containing all previous tickets to ensure there are no duplicates and then adds any new tickets to the excel sheet. So far I've tried two methods neither of which seem to have worked, I beleive because the flow adds in extra apply to each action where they aren't needed.
1. Filter Array on the Json file retrieved from the API by ID does not equal ID from the excel file. The use this filtered array in an add row action.

2. Use a condition action to check whether the ID from the API data is not equal to the ID from the excel sheet and if yes add row to the excel table:

The issue I am getting with both of these solutions is that they add multiple identical rows to the excel table. I assume this is something to do with the apply to each looping through the actions multiple times but I can't work out how to get around them.
Thanks for all your help!