Knowledge base / Since 1999
Advanced
search
Practical notes on CRM development, automation, APIs and everyday IT.
Browse all notes167 results
Zoho Creator: isBlank and isNull: Before or After?
What? A really quick article to test when to use isNull and isBlank. Why? So I've noticed that looking at people's Zoho Deluge code, there will often be a check on a null before or after the variable: if(v_Test.isBlank()) { ... } VS if(isBl ...
Zoho Desk: Interim round-robin ticket assignment using Deluge
... s = List(); for each v_ExcludedEmail in l_ExcludedEmails { if(!isNull(v_ExcludedEmail)) { l_NormalisedExcludedEmails.add(v_ExcludedEmail.toString().trim().toLowerCase()); } } v_CanContinue = true; v_Message = ""; v_TicketID = ifnull(p_Ticke ...
Zoho CRM: Sync Deal and related record owners from Zoho Desk
... ********************************************** */ if(p_DealID == null || p_DealID <= 0) { return "A valid Deal record ID is required."; } v_DealID = p_DealID.toLong(); // Replace these example settings with your organisation's configuration ...
Zoho CRM: Link supplier emails to the Purchase Order Emails related list
... ho.loginuserid; v_ReplyToEmail = zoho.loginuserid; v_QuoteId = ifnull(p_QuoteId,"").trim(); if(v_QuoteId == "") { return "No requests were submitted. The Quote ID is missing."; } if(ifnull(v_SenderEmail,"").trim() == "" || ifnull(v_ReplyToE ...
Zoho Books: Change a Purchase Order's Delivery Address over API
... + p_QuoteId type :GET connection:"crm_connection" ]; l_Data = ifnull(r_Quote.get("data"),List()); if(l_Data.size() == 0) { return "No purchase orders were created :: Quote could not be retrieved."; } m_Quote = l_Data.get(0); if(ifnull(m_Qu ...
Zoho Deluge - Calculate Portion Count
... rejects fractional capacities instead of silently rounding them. Null entries, zero, negative sizes and values that cannot be converted also produce an error. Normalising before removing duplicates means 2, "2" and " 2 " represent the same ...
Zoho CRM: Add and Update Products from Zoho Analytics Discrepancies
... Products; // Read the rows returned by Analytics. l_DataRows = ifnull(r_ZaProducts.get("data"),List()); info "Resultset Size: " + l_DataRows.size(); for each m_DataRow in l_DataRows { v_CountTotal = v_CountTotal + 1; if(v_CountTotal > 1000) ...
Zoho People and Zoho Analytics: Push all Employee Salary Data to Analytics
... response loop through each record returned m_SalaryResponse = ifnull(r_SalaryData.get("response"),Map()); l_SalaryRecords = ifnull(m_SalaryResponse.get("result"),List()); for each m_SalaryRecord in l_SalaryRecords { // // start an incremen ...
Zoho CRM: Update Opportunity Type as New or Existing Business
... OStatuses.containsIgnoreCase(r_SoDetails.get("Status"))) { if(!isNull(r_SoDetails.get("Deal_Name"))) { v_ThisDealID = r_SoDetails.get("Deal_Name").get("id"); } if(!isNull(r_SoDetails.get("Account_Name"))) { v_ThisAccountID = r_SoDetails.get ...
Zoho CRM: Client Script: Swap Quote Account with Deal Lookup
... ityLookup = f_Opportunity.getValue(); if (o_OpportunityLookup != null) { var v_OppID = o_OpportunityLookup.id; var o_OppDetails = ZDK.Apps.CRM.Deals.fetchById(o_OpportunityLookup.id); if (o_OppDetails._Distributor_Lookup_Id != null) { // ge ...
ZohoCRM & Xero: Function to pull most recent quotes
... rm/v8/org/taxes" type :GET connection:"ab_crm" ]; r_OrgTaxes = ifnull(r_TaxRates.get("org_taxes"),Map()); l_TaxRates = ifnull(r_OrgTaxes.get("taxes"),List()); // for each m_TaxRate in l_TaxRates { if(!isNull(m_TaxRate.get("id"))) { m_ZohoTa ...
ZohoCRM & Xero: Function to pull most recent invoices
... m.getRecordById("Integrations",v_TokenCrmID); v_DataEndpoint = ifnull(r_TokenDetails.get("Data_Endpoint"),""); v_TenantID = ifnull(r_TokenDetails.get("Tenant_ID"),""); // // get access token (does not need REST API url as we're calling it f ...