Skip to main content

Hello,

My zap isn´t triggering the data from firebase using the query { "orderBy": { "field": {"fieldPath": "email"}, "direction": "DIRECTION_UNSPECIFIED" }] } if I use ASCENDING or DESCENDING it only triggers the new records filtered alphabetically, it doesn't triigger all new records, I understand the orderBy is required but it filters on the new records, how can I get all the new data? Doesn't matter the order, I just need all the data.

Hi @Jeisson - welcome to the community!

Databases can be tricky because we need a way to tell the Zap what a new item is. In this case, you’ll need to add a field to the database - a date field of  ‘created on’ works well. You can then sort the data by the new field so that whenever a new record is added, it will be at the top of the list and therefore trigger the Zap. 

​I hope that helps, please let me know if you have any questions!