Multiple Row - Call Webhook

Have you read and followed the instructions at: *READ ME FIRST* Technical Help FAQs - #2 by nigel ?

Answer: Yes I have

Self-Hosted Installation

How have you self-hosted Baserow.

Docker

Which version of Baserow are you using.

baserow/backend:1.21.2
baserow/web-frontend:1.21.2

Describe the problem

Hi everyone,
I have created a webhook to make an automation.
This is a webhook whose activate when there is an update of row with a default value.
If I change only one row, that’ok but if I do the change of multiple trow, the webhook is call only for the first row.
Maybe it’s a problem of my settings but have you already get this problem.
I make a little video.
Thank’s a lot

Baserow-Webhook-Multiple-row

1 Like

Hello @Gorki,

the webhook is called only once, but it provides all the data you need: in the items array, you can find all the rows that have been created/updated/deleted. Every object in the array contains the row id and all the table’s other fields.

For the rows_updated event, you can also see the previous values in the old_items key.
I’ve used https://webhook.site/ to test it, and this is an example of the payload sent by the rows_updated event:

{
   "table_id":601,
   "event_id":"be333872-e6ec-41cf-83d4-1eef051f0590",
   "event_type":"rows.updated",
   "items":[
      {
         "id":5,
         "order":"5.00000000000000000000",
         "Name":"a",
         "Notes":"",
         "Active":false
      },
      {
         "id":6,
         "order":"6.00000000000000000000",
         "Name":"a",
         "Notes":"",
         "Active":false
      },
      {
         "id":7,
         "order":"7.00000000000000000000",
         "Name":"a",
         "Notes":"",
         "Active":false
      }
   ],
   "old_items":[
      {
         "id":5,
         "order":"5.00000000000000000000",
         "Name":"",
         "Notes":"",
         "Active":false
      },
      {
         "id":6,
         "order":"6.00000000000000000000",
         "Name":"",
         "Notes":"",
         "Active":false
      },
      {
         "id":7,
         "order":"7.00000000000000000000",
         "Name":"",
         "Notes":"",
         "Active":false
      }
   ]
}

Hello @davide,

Thanks a lot for this precision. I will test and come back back on this topic to give the results of my tests.

Have a good day,

Gorki