Aug 13, 2020 02:42 AM
I was able to make a post to create a record. But when I try to retrieve it or check the newly created record on the table it is not available.
What could be the issue?
Aug 13, 2020 04:18 AM
Hi @shravan_chandrashekh - can you post some more details about what you are trying here? Do you get a success response on the POST request? Can you see the created record in the Airtable UI?
Aug 13, 2020 05:11 AM
In almost every API integration, more than half of the code and logic required (to do it well) is generally related to error handling. In your example, there should near-zero ambiguity concerning the outcome of the POST process and if such process resulted in success (or failure).
When your app makes a post request, you should get a response and that response (almost invariably) will either contain a copy of the record added (or updated) represented in JSON (stringified) format or it will contain an error also represented in JSON (stringified) format. You shouldn’t have to go check to see if it was created (or updated) if your API process has been designed to factor in at least two possible outcomes and revealed in a easy-to-review manner.
One approach that I like to use when building Airtable solutions is to log API activity to a table - like Airtable itself using a well-tested coding framework that simply snaps into every project. The log is updated on three dimensions -
I don’t typically keep such logging active beyond the testing phase, but during the development and testing phase, this approach provides clarity on your API integration progress.
Aug 13, 2020 05:46 AM
Sorry for the inconviniece, it is updating, but it was updating after 100th row. Didnt notice. Had made a configuration changes, was thinking it was because of that. But it is working fine.