How can we help?

Custom Action: Freshdesk - Delete an agent

Andrew Bartel
Andrew Bartel
  • Updated

It's possible to delete an agent, using their email address, in Freshdesk using custom actions in a Torii workflow.

Requirements

Custom Action Configuration

We'll first make a call to lookup the agent's Freshdesk ID and store that result using response mapping. We can then use that stored result as a personalization token to delete the agent.

Screenshot 2024-09-27 at 4.07.17 PM.png

List All Agents

Method: GET

URL: https://{domain}.freshdesk.com/api/v2/agents

Query Parameters:

  • email: @Trigger.User.Email

Response Mapping:

  • freshdesk-agent-id: [0].id

Screenshot 2024-09-27 at 4.08.17 PM.png

Delete Agent

Method: DELETE

URL: https://{domain}.freshdesk.com/api/v2/agents/@Action Custom action-Get Freshdesk agent id.response.freshdesk-agent-id

Screenshot 2024-09-27 at 4.09.30 PM.png

Headers

Parameter Variable Mapping
Content-Type application/json
Accept */*
Authorization Token token=[SecretsVault.PagerDutyAPIToken]

Notes

The value for the Basic header must be encoded in Base 64 before being stored in the Secrets Vault.

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request