Help

Re: Detecting if a Record has been modified

1273 1
cancel
Showing results for 
Search instead for 
Did you mean: 
Adam_Haffar1
5 - Automation Enthusiast
5 - Automation Enthusiast

Hey there! I am trying to stream data from an Airtable base to a local file.

I am working in go and using this client airtable package - github.com/mehanizm/airtable - Go Packages

I want to be able to detect whether a record has been modified, without having to use the original data and comparing it to the current data in the base.

A solution I explored was to add the “Last modified time” field to all records, which would solve all my problems. But there is no way of doing that through API and has to be done manually. Not a great user experience!

I also am aware there is a webhook but am not keen to go down that route.

Is there any automated way I can get the “Last modified time” or any information that a change has been made and can narrow it down by the record?

Thanks!

3 Replies 3

You don’t need to add “last modified time” to all records. You just add it once to the entire table, and it will report back the last modified time for all records.

The API is setup to interact with your base AFTER it is setup. It is not designed to create the base (i.e. fields or any other structural components).

Thanks for the reply!

Unfortunately I am trying to write a program for other users, and it would be a bad user experience to ask them to add a “last modified time” field for every table they want to transfer data from.

I want them to simply have to enter their base details and key, and let me do the rest!

Is there any other way of detecting changes?

The API will always return the “createdTime” and the “id” of each record without requiring any additional fields to be created.

Otherwise, you will need to create the fields that you want.