Note
We've packed up and moved from Confluence to Discourse to bring you a better, more interactive space. Out of courtesy we didn't migrate your user account so - you will have to signup again
The Exalate team will be on holiday for the coming days - returning Jan 4
Enjoy & stay safe
I have been trying to sync a custom field created on ServiceNow end with a custom field on Azure end but with no luck. The name of the field is CR number(ServiceNow end ) and CR Number(Azure end) Below is the code I have using on both the side:
ServiceNow
Outgoing:
replica.customFields."CR Number" = entity.customFields."CR number"
Incoming:
entity.customFields."CR number"?.value = replica.customFields."CR Number".value
Azure:
Outgoing:
replica.customFields."CR number" = workItem.customKeys."CR Number"
Incoming:
workItem.customKeys."CR Number"?.value = replica.customFields."CR number"?.value
Below is the error which I am getting:
com.exalate.api.exception.script.ScriptException: Cannot get property 'value' on null object at com.exalate.error.services.ScriptExceptionCategoryService.categorizeProcessorAndIssueTrackerExceptionsIntoScriptExceptions(ScriptExceptionCategoryService.scala:32) at com.exalate.processor.ExalateProcessor.executeProcessor(ExalateProcessor.java:47) at com.exalate.replication.services.processor.CreateIssueProcessor.$anonfun$executeScriptRules$1(CreateIssueProcessor.scala:103) at scala.util.Try$.apply(Try.scala:213) at com.exalate.replication.services.processor.CreateIssueProcessor.executeScriptRules(CreateIssueProcessor.scala:100) at com.exalate.replication.services.processor.CreateIssueProcessor.createIssue(CreateIssueProcessor.scala:77) at com.exalate.replication.services.replication.request.CreateIssueSyncRequestState.transition(CreateIssueSyncRequestState.scala:36)