E-mail is not getting triggered while adding an Internal comment through API call | The place for Zendesk users to come together and share
Skip to main content
Question

E-mail is not getting triggered while adding an Internal comment through API call

  • June 9, 2022
  • 3 replies
  • 0 views

Ansar11

Steps I am following:

1. Creating a ticket with a public comment via tickets API

       -- Everything works fine. Requester and Assignee are receiving emails.

2. Immediately, from the ticket creating response, I am extracting the ticket id and call the PUT tickets API to add an internal comment.

     -- This is the payload I am passing to update the ticket.

"ticket": {

"comment": { "body":internal_comment_body, "public" :false }

}

      -- Assignee is not receiving any emails. When I check Zendesk, I can see that internal comment got added properly. But no emails triggered.

3. Tried to add another internal comment through Zendesk portal.

     -- Now the Assignee received this new internal comment added and the previous one created using API.

Am I missing something here?

3 replies

Daniel18
  • June 9, 2022

Your trigger to fire the email probably doesn't include updates via the API:

 

It could be other things, but that's a good place to start. 

Just be sure you don't have other API updates that shouldn't fire an email. If you do you'd just need to add some conditions to exclude those/only include this one (like comment is present, etc.) 


Ansar11
  • Author
  • June 9, 2022

Where do I find this option? @daniel18


Daniel18
  • June 20, 2022

@ansar11 You'd do this through the Admin Center. 

See: Managing triggers