Here is my scenario, the general idea is to update a custom field in my zendesk ticket with the country of the requester that I get from the ticket metada, the objective is that all my incoming ticket (“status” : new) are updated with the country of the requester.
The steps are :
- Catch a webhook when a Zendesk ticket is created
- GET request to get ticket audits/metadata “country”
- Parse the output of the metada
- Get the ticket concerned
- Update a custom field from the ticket with the output of 3.
The issue is that when I get my ticket on step 4. it’s status in “new” and no agent is assigned to it (as it should be) but when I update the “country” property on step 5, the output shows that the ticket is now “open” and assigned to an agent, even if I specify at step 5. that I want the status to be “new” and I didn’t assign it to anyone.
Any idea why it behaves like this and how I could prevent this status update and agent assignment from happening ?
Thank you very much !
Maybe that is how the Zensdesk works, What you can do and test it out and see if that works is,
Map the Assignee ID and Status from the value you get from Get a Task Module, or best pass ignore as part of those values.
Hey, thanks a lot for your answer !
I tried your solutions, both didn’t work but I found the cause of the problem, it was indeed a Zendesk issue : another trigger in Zendesk was causing the assignment/opening the ticket when it was updated by the API. I changed the conditions of this particular trigger to exclude updates made by APIs and the scenario now works as expected.
Hello there @hugoclrz welcome to the community
I just wanted to quickly step in and say great work figuring out what was causing this on your own! Also, thanks a lot for stepping back into the community and sharing what did the trick for you. I’m sure this will be incredibly helpful to many folks who stumble upon similar issues in the future.
Just FYI: I am marking your last comment as a solution to keep the community tidy and to make it easier for other users to find the answer they need.