Add a row with API Webhook

Hi guys, i want to use the API to add a new row at my app.

i create the workflow and is all working
but when i send the POST to add the row, it’s add too many rows, how could i solve it?


image

I see nothing wrong with your JSON.
Perhaps for some reason the webhook is being sent multiple times?

Also, thanks for showing me Insomnia :wink:

@Johny_Freitas
Key column is missing in your JSON payload…You need to specify the key column and its value at the beginning. In below page, refer to Section: Body :: Item#3

1 Like

i saw it, but my key column is uniqueid and at that page i found it “if the key field contains an “Initial value”, you can omit the key field value”

anyway, i tried to put the key column and i get the same error:

yeah, when i send the post i get multiples values

With “…same error…” are you referring to getting multiple records?
A second thought is trying with removing the RunAsUserEmail parameter from the payload.

Do the AppSheet logs show the API being invoked multiple times per ‘POST’ from Insomnia?

Any chance other actions/workflows are duplicating records?

Try changing the URL to a Postbin so you can see if multiple POSTs are sent there too.

2 Likes

Hi guys, i solved it, changing the preset from add row to custom, now works greats


2 Likes