Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save CubeYogi/e836a1385e9fb0121433b8d117c51591 to your computer and use it in GitHub Desktop.
Save CubeYogi/e836a1385e9fb0121433b8d117c51591 to your computer and use it in GitHub Desktop.
Zoho CRM Snippet : removes pipe character from criteria during zoho.crm.searchRecords()
/*** 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