Hi,
I’m having an issue during a workflow, which I have created, where I try to action a webhook and it doesn’t seem to work.
Screenshot below of workflow;
So when the ticket is raised, with the subject stated, it sends the email to requestor, this all works fine and has been tested.
The email body sent to the requestor contains an approve and deny link, like so;
Dear {{ticket.requester_name}},
We have received your request. Please
review the details provided and let us know if you approve or deny this request by clicking one of the links below:[Approve]
(https://your_freshservice_domain.freshservice.com/api/v2/tickets/{{ticket.id}})[Deny]
(https://your_freshservice_domain.freshservice.com/api/v2/tickets/{{ticket.id}})
So when the requestor selects the Deny link in the email, for this workflow. I want it to trigger the webhook action, to update a custom field named approval status and then close the ticket.
This work flow is only for the Deny link option for now, I haven’t set up the approval link workflow yet, due to not being able to get this one to work.
The webhook has been setup like this;
The content for this webhook is
{
“custom_fields”: {
“cf_approval_status”: “denied”
},
“status”: 5
}
When the requestor clicks the Deny URL they get the following error;
I have removed the proper URL and API key’s for security reasons on the above screenshot of the webhook, I have checked and these are correct.
The API key used for the webhook is for an admin role account with access to everything in the environment.
Any ideas what I’m missing? Am I using the wrong URL in the email body should it be something along the lines of;
[Deny] (https://your_freshservice_domain.freshservice.com/update_status?ticket_id={{ticket.id}}&status=denied)
Or is it something else?
Best regards,