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
We need to populate the custom Zendesk Field called:
T Applications from a ServiceNow Field called "product_name" to a Zendesk custom field called "T Applications"
The below example is from SN "CS1234567" and Zendesk "1234"
Incoming data from ServiceNow looks like this:
//issue.customFields."T Applications".value = replica.t_application
issue.customFields."T Applications".value = replica.product_name
def productMap = [
"Buoy" : "Buoy",
"Zendesk" : "Zendesk",
"...":"..."
]
def t = productMap[replica."product_name"]
//def productName = productMap[replica.product_name] ?: replica.product_name
issue.customFields."t Applications".value = t //productName // commented out because this line is only blanking out the application field
//debug.error("t = ${replica."product_name"}, result = ${t_application}")
//debug.error("Priority = ${replica.priority.name}")
But the Application never populates.