Zendesk<>ServiceNow: enabling ticket replies/comments

Hello there! I’m working on syncing Zendesk<>ServiceNow, and I’m running into a problem with comments not coming thru to Zendesk from ServiceNow after the initial message is sent from ServiceNow to Zendesk. The ServiceNow side can see all updates and comments on the Zendesk ticket, but ServiceNow cannot write back to the ticket in a way that shows up in Zendesk.

Has anyone had this sync before?
How did you script incoming comments from ServiceNow to Zendesk?

Thanks!

It sounds like you’re experiencing a common challenge when syncing comments between ServiceNow and Zendesk. Typically, this happens if the outgoing sync from ServiceNow isn’t configured to send comments as public or private replies in Zendesk, or if the mapping scripts aren’t handling comments correctly.

To sync comments from ServiceNow to Zendesk, you need to ensure that your outgoing sync script on ServiceNow collects the comments and that your incoming sync script on Zendesk creates the appropriate comment type.

Here’s a general approach:

  1. In your ServiceNow outgoing sync script, make sure you’re sending the latest comments. For example, you might include something like:
replica.comments = entity.comments
  1. On the Zendesk side, in your incoming sync script, you need to add those comments to the Zendesk ticket. For example:
if (replica.comments) {
  replica.comments.each { comment ->
    issue.comments += comment
  }
}

Make sure you’re setting the correct visibility (public/private) for the comments, depending on your requirements.

For more details and script examples, check out the documentation on syncing comments between ServiceNow and Zendesk:
https://docs.exalate.com/docs/syncing-comments-between-servicenow-and-zendesk

If you’re still not seeing comments appear in Zendesk, double-check your connection permissions and ensure that the Zendesk API user has rights to add comments.

Let me know if you need more specific script examples or troubleshooting tips!

Hi @arai1018 ,

Welcome to the Exalate Community Portal.

Please try Aida’s suggestion and let me know whether it resolves the issue. I’ll be happy to assist further if needed.

Kind regards,
Ashar

Hi @arai1018 ,

The issue is likely related to ServiceNow ACLs, specifically permissions on sys_journal_field.

As documented in the Exalate ServiceNow proxy user permissions guide, to allow Exalate to add comments to incidents (or other synchronized entities), you need to configure three ACLs on sys_journal_field for the Exalate role:

  • Create

  • Read

  • Write

Even if the integration can read the existing comments and synchronize the initial message, missing journal-field permissions can prevent subsequent comments from being written correctly.

I’d recommend verifying these three ACLs first, then testing whether new comments added in ServiceNow appear on the corresponding Zendesk ticket. If the permissions are already configured correctly, the next step would be to review the incoming/outgoing sync scripts and comment visibility mapping.

Thanks, Dhiren

Hi Ashar!

We made the updates that Aida suggested.

After that, additional comments from ServiceNow do appear in the Zendesk ticket (which is what we wanted), but now the situation is reversed: ServiceNow cannot see messages that are sent from the Zendesk side. Looking at the Sync Queue, it appears that Zendesk is not sending anything (outgoing sync 0, incoming sync 0), yet there are no errors to fix. I made no changes to Zendesk’s outgoing script, only the incoming script.

What can I do to re-sync comments from Zendesk to ServiceNow? Thank you

Hi @arai1018 ,

Thanks for sharing the details.

Based on your description, this could potentially be related to a webhook issue on the Zendesk side, particularly since the Sync Queue shows no outgoing or incoming sync activity and no errors.

Could you please help us confirm a few things so we can narrow down the issue?

  1. Exalate version: Are you using Exalate Classic (the Marketplace app) or New Exalate (the web-based interface)?

  2. Scope of the issue: Does the initial sync from Zendesk to ServiceNow work successfully? Also, are other field updates (such as summary, description, status, etc.) syncing correctly in both directions, with only comments failing to sync from Zendesk to ServiceNow?

  3. Sync behaviour: If other updates are also not syncing from Zendesk to ServiceNow, could you check whether any errors are reported in the Sync Queue?

Additionally, since this could be related to a missing or lost webhook, please try recreating the Zendesk webhook by following the steps in our documentation:

Recreating a Lost Webhook

If the issue persists, or if no updates are syncing from Zendesk to ServiceNow despite there being no visible errors, please raise a support ticket through our portal so that our team can investigate this further:

Exalate Support Portal

Once we have the above details, we can narrow down the cause and suggest the next steps.

Thanks,
Dhiren

Hi Dhiren!

  1. using New Exalate

  2. Yes, exactly. The initial sync does work successfully, including ServiceNow’s initial comment. The other Zendesk fields for partner, case number, priority sync correctly. Even the correct tags appear when the Zendesk ticket is created. The only thing that will not work is Zendesk comments appearing on the ServiceNow side.

  3. There are no errors reported in the Sync Queue at all. It reports 0 consistently, but no errors. There are no errors in the Connections either.

I checked the Zendesk webhook, and it is already in place with the correct Exalate URL.

Hi @arai1018 ,

Thanks for confirming the details.

Just to clarify, is the issue limited to comments not syncing from Zendesk to ServiceNow, or are other fields also failing to sync back from Zendesk?

If the issue is specific to comments, there could be two possible causes:

  • An issue with the script responsible for handling comment synchronisation.

  • A permissions-related issue preventing comments from being created or updated on the ServiceNow side.

To investigate this further, could you please share the complete outgoing and incoming scripts from both Zendesk and ServiceNow?

This will help us review the configuration and narrow down the cause.

Thanks,
Dhiren

Hi Dhiren,

Zendesk ticket comments and changes to Priority field are not syncing from Zendesk to ServiceNow. Everything else appears to work properly.

I’m having trouble sharing the Zendesk scripts here as a reply. When I try to send the reply containing the script info, I get an error message that says “sorry new users can only put 2 links in a post”