Skip to main content
Solved

Send Pipe Id as a number on a webhook

  • December 1, 2023
  • 2 replies
  • 237 views

caio-leite
Forum|alt.badge.img

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?

Best answer by antonio-nykael

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
  }
}
 

 

 

 

2 replies

antonio-nykael
Forum|alt.badge.img+1
  • Brainy
  • 75 replies
  • Answer
  • December 2, 2023
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
  }
}
 

 

 

 


marcosmelo
Forum|alt.badge.img+18
  • Legend
  • 1466 replies
  • December 4, 2023

I will test these tips