Created
May 4, 2018 10:41
-
-
Save CubeYogi/e836a1385e9fb0121433b8d117c51591 to your computer and use it in GitHub Desktop.
Zoho CRM Snippet : removes pipe character from criteria during zoho.crm.searchRecords()
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
/*** removes pipe character from criteria during zoho.crm.searchRecords() ***/ | |
lead_name = "|Cube | Yogi"; | |
/** removes Pipeline character from criteria **/ | |
/** Case 1 for | Yogi**/ | |
lead_name = lead_name.replaceAll("\| ", ""); | |
/** Case 2 for |Cube **/ | |
lead_name = lead_name.replaceAll("\|", ""); | |
if(lead_name != null && lead_name != "null" && lead_name.length() > 0) | |
{ | |
/** Search Record Function **/ | |
lead_search_response = zoho.crm._searchRecords("Leads", "(Last Name|=|" + lead_name + ")"); | |
info lead_search_response; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment