Skip to main content

Hi all, 

What I need help with: I’m trying to figure out how to limit the number of records sent from a Gmaps webook GET call to Airtable to only 10 records.

 

What I’ve tried:
- Give the webhook outputs an index and filter out anything greater than 10: couldn’t get the indexes properly setup

- Used the code block and tried both python and js methods but no luck. 

- Formatting the output, but this proved useless as I couldn’t limit

 

What I’m considering next:

Sending the data to a different data source (Gsheets maybe), assigning it indexes, then funneling those back into a filter with a limit of 10, then on to airtable.

 

I’ve been pulling my hair out on this for a few days now and my cat believes I’ve lost all sanity. Am I missing something obvious here?

Hi there @ahmadcc

Just wanted to pop in here as I came across this post and spotted that you had also reached out to our Support team who suggested using Looping by Zapier to solve this. I expect you’ve already seen their reply by now but I’ll share their suggestion here anyway, just in case it’s helpful to other folks in Community with a similar issue:
 

“I understand you're trying to limit the number of records that a webhook returns to 10 as Airtable only allows 10 to be created in one zap. A possible solution for this issue is using a "Looping by Zapier" action, which can help you loop through the line items you're trying to add to Airtable. Although it's an advanced action, it seems you're comfortable with advanced tasks since you're already using "Code by Zapier" actions.
 
To implement this solution, you'll use the Airtable action to create single records instead of creating line items, as the "Looping by Zapier" action will process the line items one by one.
 
Here's more info on "Looping by Zapier" action: Loop your Zap actions – Zapier


Hope that helps! 🙂