Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Zoho Flow - Zoho CRM - set 1+ Field(s) to an empty string value (within a single CRM Module)
void zohoCRMUpdateNullEntry(string module, string entryId, string fieldNames)
{
// This gist: https://gist.github.com/cliffordp/c4590a50b3c8ad6f7add7220481e0082
// Based on https://help.zoho.com/portal/en/community/topic/how-can-i-clear-out-a-value-in-a-field-or-set-it-to-null-using-zoho-flow
// But this one allows blanking out multiple comma-separated fields at once
// Example module = "Leads" (without quotes in Zoho Flow)
// Example fieldNames = "Street,City,State,Zip_Code" (without quotes in Zoho Flow)
optionalFields = Map();
fields = fieldNames.toList(",");
for each field in fields
{
optionalFields.put(field,"");
}
info module;
info entryId;
info optionalFields;
info zoho.crm.updateRecord(module,entryId.toLong(),optionalFields);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment