Skip to content

Instantly share code, notes, and snippets.

@cliffordp
Last active April 9, 2022 04:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cliffordp/c4590a50b3c8ad6f7add7220481e0082 to your computer and use it in GitHub Desktop.
Save cliffordp/c4590a50b3c8ad6f7add7220481e0082 to your computer and use it in GitHub Desktop.
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