nocodb icon indicating copy to clipboard operation
nocodb copied to clipboard

🔦 Feature: Send what changed in webhook data when update action is triggered

Open PrasanthKumar77 opened this issue 3 years ago • 2 comments

Please confirm if feature request does NOT exists already ?

  • [X] I confirm there is no existing issue for this

Describe the usecase for the feature

when webhook is triggered on updating the value of a row we cannot identify which column is changed and what is the previous value.

Suggested Solution

should be able to identify what data is changed on seeing the webhook respone data. webhook should trigger only when all columns are updated. currently it is triggering for change in each column. may be we can provide a option to bulk edit all columns of a row and then trigger webhook once when clicked on update button

Additional Context

No response

PrasanthKumar77 avatar Sep 30 '22 14:09 PrasanthKumar77

hi @o1lab, may i know if this is currently in your roadmap?

PrasanthKumar77 avatar Oct 13 '22 07:10 PrasanthKumar77

For me it would already be useful to to know which field was changed in the last update.

Or just make it possible to add a condition on change of a field. So that it will not be triggered again when another field is changed in the same record.

djmaze avatar Dec 02 '22 11:12 djmaze

Hi @o1lab , May i know if this is in your roadmap for future releases?

PrasanthKumar77 avatar Dec 26 '22 09:12 PrasanthKumar77

@PrasanthKumar77 @djmaze Webhook update trigger now sends complete record before and after modification; please check if this caters to your needs. reopen this issue if you need more support on this.

dstala avatar Apr 14 '23 09:04 dstala

@dstala Thanks for the improvements, but unfortunately this still does not fulfill my needs.

It is neither possible to filter on the old vs. new value in the condition. Nor can we differentiate if a field was changed inside the body template since the handlebars template is very restrictive and does not allow for really useful if conditions here.

djmaze avatar Apr 14 '23 17:04 djmaze

But I guess at least I can now implement a custom webhook proxy which can see the old vs new data and decide if a notification should be triggered. So, some additional work, but that should not be too hard to do.

djmaze avatar Apr 14 '23 17:04 djmaze