I just made a PUT request when using the direct ticket number of 25? but it doesn’t allow it when I used the placeholder to set the ticket number dynamically?
Hello @John8908, the reason its failing is because {{ticket.id}} for freshservice is a string that is formatted like so: “INC-25”. This doesn’t work since the URL is looking for a numeric ID. So you just need to use the placeholder {{ticket.id_numeric}} and your webhook will work.
When working with placeholders, it is always a good idea to print the placeholder out to as a note to the ticket to see it’s true value. Hope that helps!
Many thanks, your explanation makes sense now! I have tested the workflow with the amended change. When I go into the ticket and update it, the webhook does indeed now work when triggered by the condition.
The test webhook feature still showed the error, so i’m guessing this may be a limitation on the test webhook feature inside the webhook interface?
Since I have seen this error previously and the webhook triggered as part of the workflow regardless of failing in this testing stage area with the above error.
I checked the ticket activities and seen it had failed as per below screenshot;
I don’t seem to have an issue updating things like group, department etc on the ticket using the relevant group or department ID’s if I amend the webhook to do so as part of the below flow.