def res = httpClient.get("/services/data/v36.0/query/?q=SELECT+InstallDate+FROM+Asset+WHERE+SerialNumber+=+'${replica.customFields.'Asset Serial Number'.value}'")
if (res.records.size()>0){
entity.Client_Mood__c = res.records[0].InstallDate
syncHelper.syncBackAfterProcessing()
}
A video demonstration of the solution is attached here:
Ticket starts off in Zendesk
We populate an Asset serial number in Zendesk
Requirement is to fetch the Install Date of that Asset from Salesforce, in addition to having a case object created.