# Identifying updated records using API \[Aug 09\]

**URL:** <https://community.nocodb.com/t/identifying-updated-records-using-api-aug-09/638>\
**Category:** Discord-Discussions\
**Created:** [November 3, 2022, 10:37am UTC](https://community.nocodb.com/t/identifying-updated-records-using-api-aug-09/638 "2022-11-03T10:37:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![NocoDB](https://avatars.discourse-cdn.com/v4/letter/n/6f9a4e/32.png) [@NocoDB](https://community.nocodb.com/u/NocoDB)\
**Post date:** [November 3, 2022, 10:37am UTC](https://community.nocodb.com/t/identifying-updated-records-using-api-aug-09/638/1 "2022-11-03T10:37:04Z")

</div>

> 🙋‍♂️ **ccoli** _asked_

## Hi~ Is there any way to detect record updated on code without using webhooks ?

#### 

#### I just do not know how to do that. I just come up with the idea doing something with nocodb-sdk but still do not know how to do that.

#### 

#### ```

#### const router = require(‘./routes’);

#### 

#### (async () =\> {

#### // require express

#### const app = require(‘express’)();

#### 

#### // require nocodb

#### const { Noco } = require(‘nocodb’);

#### 

#### app.set(‘port’, process.env.PORT);

#### // mount nocodb as a middleware

#### app.use(‘\*’, router);

#### app.use(await Noco.init({}));

#### 

#### console.log(`Visit : localhost:${process.env.PORT}/dashboard`);

#### 

#### // listen to a port

#### app.listen(process.env.PORT);

#### })();

#### ```

---

<div class="post-metadata">

**Author:** ![NocoDB](https://avatars.discourse-cdn.com/v4/letter/n/6f9a4e/32.png) [@NocoDB](https://community.nocodb.com/u/NocoDB)\
**Post date:** [November 3, 2022, 10:37am UTC](https://community.nocodb.com/t/identifying-updated-records-using-api-aug-09/638/2 "2022-11-03T10:37:05Z")

</div>

> 👨‍🦲 **dstala** _replied_

#### Webhook is ideal way. If you wish to do it using API, it can be done via polling periodically & conditionally retrieving records from a table based on `updated-at` timestamp range.

#

---

<div class="post-metadata">

**Author:** ![NocoDB](https://avatars.discourse-cdn.com/v4/letter/n/6f9a4e/32.png) [@NocoDB](https://community.nocodb.com/u/NocoDB)\
**Post date:** [November 3, 2022, 10:37am UTC](https://community.nocodb.com/t/identifying-updated-records-using-api-aug-09/638/3 "2022-11-03T10:37:06Z")

</div>

> 🙋‍♂️ **ccoli** _replied_

#### thank you \<@857998597474484295\> for ur reply. but polling is a bit different that I wish to do.

#### 

#### the thing I wish to do is the below.

#### “deal” table has “cpid”, “subject” columns and some defaults columns as well.

#### 

#### 1. update cpid column (cpid is just an example column) on nocodb

#### 

#### 2. fetch some data with cpid

#### 

#### 3. update the record with data fetched on subject.

#### 

#### without using webhooks, so far is there any way ??

#### 

#### I’m justing thinking this way can u tell me if this ok or not??

#### 

#### After updating record, there is an post api with payload.

#### so on the routing, I catch the payload and somehow call the api to fetch the subject data.

#### and with the subject data. I update the record.

#### 

#### but I’m not sure if this is possible and ok to do it.

#

---

<div class="post-metadata">

**Author:** ![NocoDB](https://avatars.discourse-cdn.com/v4/letter/n/6f9a4e/32.png) [@NocoDB](https://community.nocodb.com/u/NocoDB)\
**Post date:** [November 3, 2022, 10:37am UTC](https://community.nocodb.com/t/identifying-updated-records-using-api-aug-09/638/4 "2022-11-03T10:37:07Z")

</div>

> 👨‍🦲 **dstala** _replied_

#### without using webhook, this would become tedious I believe.

#### 

#### \> so on the routing, I catch the payload and somehow call the api to fetch the subject data.

#### \> and with the subject data. I update the record.

#### 

#### So if you are manually adding a patch for a particular table, it might work as long as the API invocation parameters are correct. not recommended though - as it would be pretty much a hack;

#

---

<div class="post-metadata">

**Author:** ![NocoDB](https://avatars.discourse-cdn.com/v4/letter/n/6f9a4e/32.png) [@NocoDB](https://community.nocodb.com/u/NocoDB)\
**Post date:** [November 3, 2022, 10:37am UTC](https://community.nocodb.com/t/identifying-updated-records-using-api-aug-09/638/5 "2022-11-03T10:37:08Z")

</div>

[Autogenerated from discord](https://discord.com/channels/661905455894888490/1006094169942528060)

* * *

#### Join [NocoDB’s](http://www.nocodb.com/) community

[Discord](https://discord.gg/5RgZmkW) • [Twitter](https://twitter.com/nocodb) • [Reddit](https://www.reddit.com/r/NocoDB/) • [Docs](https://docs.nocodb.com/)
