Channel of follow up tickets | Community
Skip to main content

Channel of follow up tickets

  • August 30, 2021
  • 4 replies
  • 0 views

Hi,

We have some triggers that sending ticket data to our internal API from Zendesk on ticket creation. Inside the API we need to check the channel of the ticket to understand how to handle it. For normal tickets everything works fine but `follow up` tickets have only `Closed ticket` channel. 
So, the question is: can I get some data (maybe from original ticket) about the `real` channel of the `follow up` ticket in the trigger action to send it in JSON?

4 replies

  • August 30, 2021

  • Author
  • August 30, 2021

Yes, I saw this one but it doesn't help in real =( All I see there is that Zendesk knows about the issue but that was 2 years ago.


Dan45
  • August 30, 2021

Without knowing what code you're using or where, I couldn't tell you exactly how to find it, but the channel of the original ticket is nested in the JSON data under:

"ticket":{
             "via":{   
                     "source":{
                                    "from":{
                                                "channel": channel_of_original_ticket


  • Author
  • August 31, 2021

Hi Dan,

It looks like you talking about ticket structure that I can get via Zendesk API. I know that I can get the original source with an additional request. But my question is about getting this data inside trigger action (as a placeholder or smth). So, for example, we have a trigger that sends data to our API and has this field inside the JSON body:

"channel": "{{ticket.via}}",

So, we use `ticket.via` placeholder there. But, as I see here https://support.zendesk.com/hc/en-us/articles/203662156-Zendesk-placeholders-reference#topic_giz_opl_rc the `via` field can be only a string but not some kind of JSON structure.