API v2 returns annoying fieldData collection

Hey there, I have upgraded some of my scenarios to webflows v2 API.

The main difference i have found is when you return a list of records, all the field data is now in a collection called fieldData inside each record of the array.

I use Make, and often use the map function to find the webflow ID of an item based on another field which is in the fieldData collection. However with this now being in a collection inside the array, map doesn’t work.

One work around I have found is to insert a Set Var module when I iterate through the records and then add this var into the Array aggregator. Unfortunately this means using up one token for every record, and when there are 2000 records in the webflow list, this makes it un-affordable.

The other solution I have found is people adding the webflow ID into a field in webflow, so it is returned if you map the fieldData collection. This is not ideal, as I would have to setup another automation to add the webflow ID into a field every time a new record is created.

Do you have a solution here? I would love to know!

Thanks in advance!

Hi @EvanCowan - not super familiar with Make’s map function or set var module offerings, but agree you shouldn’t have to use a token for each CMS Item record when you’re iterating. If you have a Loom/video showing the workflow and what issue you’re running up against, feel free to DM me if you’d like and happy to try and point you in the right direction.