Solved

Send Pipe Id as a number on a webhook

  • 1 December 2023
  • 2 replies
  • 58 views

Userlevel 1
Badge

I have a list with all the pipe ids I have to process (as numbers, like the pipe url), but when I send the request via webhook, the pipe_id arrives as some kind of hash.
My webhook configuration:

mutation {
createWebhook(input:
{
clientMutationId: "1",
actions: ["card.create", "card.move"],
name: "Integration Name",
email: "email@email.com",
pipe_id: 302682925
url: "https://...",
})
{
  clientMutationId
}}

And this is what I'm receiving in my API:

{
"Data": {
"Action": "card.move",
"From": { "Id": 123123, "Name": "phase 1" },
"To": { "Id": 321321, "Name": "phase 2" },
"MovedBy": {
"Id": 123,
"Name": "Usar Name",
"Username": "user-name",
"Email": "email@email.com",
"AvatarUrl": "https://..."
},
"Card": { "Id": 123123, "Title": "Test title", "PipeId": "2jz9X0eK" }
}
}

This "PipeId": "2jz9X0eK" needs be the pipe number (302682925).

How can I retrieve this information in the correct format?

icon

Best answer by antonio-nykael 2 December 2023, 17:31

View original

2 replies

Userlevel 6
Badge +1
Hello,I believe this “Pipeid” is “suid”.

 

 

you can get the “Pipeid” as follows:


query MyQuery {
  pipe(id: "suid") {
    id
  }
}

 

you can get the “suid” as follows:

query MyQuery {
  pipe(id: "PipeId") {
    suid
  }
}
 

 

 

 

Userlevel 7
Badge +18

I will test these tips

Reply