Last active
April 9, 2022 04:23
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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