Triggers not working in conjunction with "Out of office" app

8 Comentarios

  • Eric Nelson
    Zendesk Developer Advocacy
    Hey George, 

    Appreciate the feedback. Unfortunately this limitation is due to the Out of the Office utilizing the Apps Framework which is a client side solution, so it wouldn't have the ability to interact with the backend services such as trigger events and API's. Though you can still solve this limitation by utilizing a combination of a webhook / trigger and an external service. 

    I've thrown together a small app that checks a ticket on update to see if the assignee has the 'agent_ooo', if it does it reassigns it back to the group. All you need to do is setup a webhook to fire to the service on whatever conditions you'd like (I did ticket is updated and assignee is not -). You can find the app here (this link will spin up your own version of the app). This is hosted on glitch to easily show proof of concept, but you can host it on whatever web service you'd like - or even as a server-less function. 
    0
  • Justin Hunt

    Eric Nelson,
    Thank you for guiding us on how to resolve this, "bug".
    I tried using your app, but something just doesn't seem to be working. 
    What should my settings be on the webhook that triggers "Glitch"?

    0
  • Eric Nelson
    Zendesk Developer Advocacy
    Hey Justin,
     
    1. In your Zendesk instance, create a webhook. For the address you'll want to put in the public facing url of this app. (If you're using glitch you can find this by clicking "share" and then copying the live site link)
     
    2. In the trigger you'll want to pass in a payload with the ticket id and assignee's email
     
    {
    "ticketId": "{{ticket.id}}",
    "email": "{{ticket.assignee.email}}"
    }
     
     
    3. Finally, you will need to add in your Zendesk admin email, subdomain, webhook secret and api token into the `.env` file
     
    Hope this helps!
    0
  • Justin Hunt

    Eric Nelson I probably could have asked that in a better fashion. I have the webhook created and I am using the correct public URL, but I don't have an option when using the "Request Method" of "Get" to pass in a payload. Only URL Parameters. When I choose, "Post", "Put", or "Patch" for the "Request Method" I can pass a json payload, but it returns a 404 Error and says cannot Post. 
    Thoughts on what I have incorrectly configured? 


    0
  • Eric Nelson
    Zendesk Developer Advocacy
    Ah sorry for misunderstanding, your request needs to be a POST request and the you need to append "/zd" to the endpoint URL "example.glitch.me/zd"
    0
  • Justin Hunt

    Thank you Eric Nelson!
    We are getting so close now!
    I get a response back from the trigger now, but it is not actually removing the assigned user when agent_ooo is present. 

    I see this in my Glitch logs and the link goes straight to this section of code. 

    I did notice you updated the package already with the updated instructions, but I am still getting this error even with a fresh copy. 

    0
  • Eric Nelson
    Zendesk Developer Advocacy
    Hey Justin,

    Mind if I pull this into a ticket so I can take a closer look? 

    Thanks!
     
    1
  • Justin Hunt

    Sure!

    0

Iniciar sesión para dejar un comentario.

Tecnología de Zendesk