Fetching a SINGLE contact record from Zoho CRM by email
However, I wish to fetch just ONE record (our CRM never has duplicate email fields for contacts) and grab the ContactID for additional processing.
The code I use to fetch the contact list by email is:
contactList = zoho.crm.searchRecords("Contacts","(Email:equals:".concat(emailString).concat(")"));
Note: the variable emailString is the email address passed into my deluge script.
However, I cannot determine
a. how to check to see if the search returned a contact (that is, does a contact exist with that email)
b. how to then get just the first contact from the list and extract the id field.
Any help would be greatly appreciated.