Browse Source

Merge pull request #7307 from nocodb/docs/webhook-conditions

docs: webhook updates
pull/7308/head
Raju Udava 9 months ago committed by GitHub
parent
commit
75c78b352f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      packages/noco-docs/docs/130.automation/020.webhook/020.create-webhook.md

7
packages/noco-docs/docs/130.automation/020.webhook/020.create-webhook.md

@ -38,6 +38,13 @@ keywords: ['NocoDB webhook', 'create webhook']
![Configuring webhook](/img/v2/webhook/create-webhook-2.png)
### Webhook with conditions
In case of webhook with conditions, only records meeting the configured criteria will trigger webhook. For example, trigger webhook only when `Status` is `Complete`. You can also configure multiple conditions using `AND` or `OR` operators. For example, trigger webhook only when `Status` is `Complete` and `Priority` is `High`.
Webhook will be triggered only when the configured condition wasn't met before the record was updated. For example, if you have configured webhook with condition `Status` `is` `Complete` and `Priority` `is` `High` and you update the record with `Status` `Complete` and `Priority` `Low` to `High`, webhook will be triggered. However, if you update any other fields of the record with `Status` `Complete` and `Priority` `High`, webhook won't be triggered.
In summary, webhook will be triggered only when `Condition(old-record) = false` and `Condition(new-record) = true`.
### Webhook Response Sample
<Tabs>

Loading…
Cancel
Save