Zendesk Sync status coming as empty

Originally asked by Balu Reghunathan on 23 November 2022 (original question)


I am trying to send the status from Zendesk to ServiceNow, When I try to send the status it is always sending as empty string.

Outgoing script (Zendesk)

replica.status = issue.status

I tried to log to see what is going on and it is always coming as empty.

debug.error("issue.status from local side is: " + issue.status) // shows it as empty

debug.error("replica.status from local side is: " + replica.status) // shows it as empty


Answer by Balu Reghunathan on 23 November 2022

Found the issue.

had to always check for issue.status.name for the log.