Skip to main content
Solved

Webhook to Update Ticket after Ticket Raised

  • February 6, 2025
  • 1 reply
  • 38 views

Trava1985
Apprentice
Forum|alt.badge.img+1

I need a little bit of help.

I’m trying to create a simple automation, Ticket Raised ==> Check Condition ==> Trigger webhook to update the same raised ticket.

But I can’t make it work with placeholders on the callback URL:

If I fix a ticket to the url, i.e.: https://xyz.freshservice.com/api/v2/tickets/74168 it works but when I use a placeholder to use the ticket id from the first step  https://xyz.freshservice.com/api/v2/tickets/{{ticket.id}} then it fails!

Not sure why, because no information is available in the log.

Do I need to declare a variable form the incoming data and then put that variable in the call back url?

Many thanks,

 

 

 

Best answer by Trava1985

Just found that the issue was {{ticket.id}}, that one returns a non numeric value, i.e.: INC-123 or SR-456, the correct one to use is {{ticket.id_numeric}}

View original
Did this topic help you find an answer to your question?

1 reply

Trava1985
Apprentice
Forum|alt.badge.img+1
  • Author
  • Apprentice
  • 1 reply
  • Answer
  • February 6, 2025

Just found that the issue was {{ticket.id}}, that one returns a non numeric value, i.e.: INC-123 or SR-456, the correct one to use is {{ticket.id_numeric}}


Reply