Discord Webhook

Hi!

Need some help with a webhook configuration. I used to have an integration with Make, monitoring my GoogleSheet (was my "database" at the time) and every addition to that table, a message with the ID and Date would be sended to Discord.

Now Iยดm connected to Postgres, and trying to configure a webhook. Already got task and process figured out and message is working on Discord every time I add a row to the table.

Iยดm struggling to reference the columns from the table cause I just coppied the Json body format from Make:

{
"content" : "**New Order Request** \nID: {{3.`2`}}\nDate: {{3.`3`}}"
}

where {{3.`2`}} and {{3.`3`}} is referencing two columns from the table, so i get a result like this:

thiago_tcr_0-1664455373861.png

Canยดt find any documentation on how to replace with elements referencing the table column, already tryied "<<[COLUMN_NAME]>>", but apparently it reads the first row instead of the one Iยดve just added.

 

Solved Solved
0 6 732
1 ACCEPTED SOLUTION

I see.
Try:

{
 "content" : "**New Order Request**\nID: <<[ID_ORDER]>>\nDate: <<[DATE]>>"
}

View solution in original post

6 REPLIES 6


@thiago_tcr wrote:

already tryied "<<[COLUMN_NAME]>>",


Post the whole JSON body that you tried and failed in order for us to help

Sorry,!
 
here it is:
 
{
   "content" : "**New Order Request** \nID: "<<[ID_ORDER]>>"\nDate: "<<[DATE]>>"
   }

I see.
Try:

{
 "content" : "**New Order Request**\nID: <<[ID_ORDER]>>\nDate: <<[DATE]>>"
}

Thanks @SkrOYC for the reply. 

It reads the data from the table, but it seens to always get the first row instead of the last added one.

 

That's quite a werid behaviour.
Does this bot have an event tied to Adds only?

Yes, 

But found out what is going on! your solution is perfect! Each time a create an order, itยดs creating it twice in DB. 

thiago_tcr_1-1664483077390.png

Thanks again for the reply. 

 

 

 

Top Labels in this Space