Hello!!!
Welcome to the Make community!
The best way to achieve this is to:
- Do the Search rows as you already did
- Use an Array Aggregator to group all IDs from Google Sheets into one single Array with your IDs
- Do a Etsy/List Shop Listings as you did
From this point, you have the array from Google Sheets, and bundles with all IDs in Etsy. If I understood well, you want to check if an ID in Etsy IS NOT in Google Sheet. If it happens, you add it in the Google Sheet; Is it right?
- Add a “Add a Row” as you did and map all columns with fields coming from Etsy, as you seem to have done already.
And, add a filter. You were very close to the right structure of your scenario! it’s just that the filter is a bit harder, since you need to use Make functions. I will try and show you with my own fake data.
This is my Sheet (I have ids and names)
I have ids 1, 2, 3, 4, 5
After the Aggregator I have an array with a field called “id(A)”
I simulate call to Etsy. I get an id and some other fields
Add a row gets data from Etsy
And now the filter
There are different ways to do. What I did here is:
- I create a new array that gets the “id(A)” from my initial array, but where “id(A)=etsyid”
- I get the Length of this new array
- If this length=0, it means that the ID was not found, so I can continue to “Add a Row”
To implement the map function, you need the “raw name” of the field you want to extract and the one you want to compare.
Here is an animated screenshot to show you how I found it (in my case, the visual name is “id(A)”.
As you can see below, it’s a little confusing because in my case, the raw name is “0”. You may have the same thing than me since you aggregate from Google Sheets as well.
And the result of the call. id=10 was added
Give it a try and let me know if you are stuck anywhere
Benjamin