How can i get the last record of a zapier table? I cant see an task in the Zapier Table Action for that...
How can I get the last record of a Zapier Table?
Hi
You would need a field to search by that indicates it’s the last record.
Zapier Tables doesn’t support a search query language.
Welcome to the Community
Troy is correct, there isn’t a way to set a search action automatically find the last record in the table at the moment. I’d suggest submitting a feature request for that here so the team can look into getting that added!
As a workaround, you could add a hidden field to the table called “Last Record” for example. Then set up a Zap to automatically update that field when a new record is added, like so:
- Trigger: New Record (Zapier Tables) - runs when a new record is added.
- Action: Find Record (Zapier Tables) - searches the table for a record containing the value “true” in the Last Record field.
- Action: Update Record (Zapier Tables) - updated the record that was found (uses the record ID from the Find Record action for the Record ID) to change it to “false”.
- Action: Update Record (Zapier Tables) - updates the record that was added (uses the record ID from the New Record trigger for the Record ID) to change it to “true”.
Then in the Zap that you want to use to obtain the last record, you would use another Find Record action to search for the record that contains the value “true” in it’s Last Record field. That should allow the Zap to find the last record added to the table.
Hope that helps to get you pointed in the right direction. If you run into any issues on that or have further questions do let us know! 🙂
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.