I’m using Zoho Creator to pull record information from Zoho CRM, using the method zoho.crm.getRecordById, as such:
potential = zoho.crm.getRecordById("Potentials", My_Zoho_CRM_ID);
When My_Zoho_CRM_ID is an ID that exists in the CRM, everything works fine. However, when My_Zoho_CRM_ID does not exist in the CRM, I’m given the following error:
Error in executing Set Variable task. Unable to update template variable potential.
Error evaluating MAP expression :
Is there any way to catch this error?
I’ve tried throwing a block checking if potential is null but that doesn’t work as the error is thrown before that– seemingly when the getRecordById method fails.