Knowledge base / Since 1999
Advanced
search
Practical notes on CRM development, automation, APIs and everyday IT.
Browse all notes152 results
If Then Else in Report Builder 2.0 Expressions
... Google properly. Anyway here's just a quick note on how to do if else statements in Report Builder 2.0 I'm looking at the following if statement: If (MyFieldName = 0) Then Return 1 Else Return MyFieldName Can be expressed as: IIf(Fields!MyF ...
Zoho Desk: Interim round-robin ticket assignment using Deluge
... signment stopped: ticket could not be retrieved. " + r_Ticket; } else { v_DepartmentID = r_Ticket.get("departmentId").toString(); v_CurrentAgentID = ifnull(r_Ticket.get("assigneeId"),"").toString(); v_StatusType = ifnull(r_Ticket.get("statu ...
Zoho CRM: Sync Deal and related record owners from Zoho Desk
... s.add({"field":v_QuoteSalesOrderField,"ids":l_SalesOrderIDs}); } else { l_LookupSearches.add({"field":v_PurchaseOrderSalesOrderField,"ids":l_SalesOrderIDs}); l_LookupSearches.add({"field":v_PurchaseOrderQuoteField,"ids":m_RelatedRecordIDs.g ...
Zoho CRM: Link supplier emails to the Purchase Order Emails related list
... e = v_POReference.subString(0,v_POReference.length() - 1); } } } else { // Backward compatibility for subjects such as "Subcontractor PO - 123". v_POPos = v_SubjectUpper.indexOf("PO - "); if(v_POPos >= 0) { v_POStart = v_POPos + 5; v_PORema ...
Zoho Books: Improper Statement Error might be due to missing ';'
... ver in the end the function still would not save... the error is elsewhere. The problem was elsewhere inside the block. The reported line is a starting point for investigating, rather than necessarily the line which needs changing. I also q ...
Zoho Books: Change a Purchase Order's Delivery Address over API
... nt"; m_ZB_SearchParams.put("zcrm_account_id",v_CrmCustomerID); } else if(m_Quote.get("Contact_Name") != null) { v_CrmCustomerID = m_Quote.get("Contact_Name").get("id").toString(); v_CrmCustomerType = "contact"; m_ZB_SearchParams.put("zcrm_c ...
Zoho Deluge - Calculate Portion Count
... ocation.containKey("error")) { info m_Allocation.get("error"); } else { for each v_Size in m_Allocation.keys() { info "Tray size " + v_Size + ": " + m_Allocation.get(v_Size); } } Check for error before processing the map as tray quantities. ...
Zoho Books: getRecordsByID
... then a colleague gave me the following. I hope it helps someone else out there too... Note that connection zbooks has zohobooks.fullaccess.all and this code is on the EU datacenter: info item; // yields {the correct record} info zoho.books ...
Zoho People and Zoho Analytics: Push all Employee Salary Data to Analytics
... on Next First row contains column names = Yes, leave everything else as plain text except for Description which you should change to a Multi Line Text. Click on Create. A few more things to configure Get the ZohoAnalytics Org ID: Login to ...
Zoho CRM: Update Opportunity Type as New or Existing Business
... dateRecord("Deals",v_ThisDealID,m_UpateOpp); info r_UpdateOpp; } else { info "This is the first complete sales order so the opportunity type here is still 'New Business'."; } } else { info "This Sales Order is not considered complete so it ...
ZohoCRM & Xero: Function to pull most recent quotes
... utputTaxRates.put(v_ThisXeroTaxRateRef,v_ThisXeroTaxRateRate); } else if(!isNull(m_ZohoTaxRatesByName.get(v_ThisXeroTaxRateRef))) { m_OutputTaxRates.put(v_ThisXeroTaxRateRef,v_ThisXeroTaxRateRate); } else if(!isNull(m_ZohoTaxRatesByRate.get ...
ZohoCRM & Xero: Function to pull most recent invoices
... eroPhoneType == "PHONE") { v_CrmPhone = v_XeroFullPhoneNumber; } else if(v_XeroPhoneType == "MOBILE") { v_CrmMobile = v_XeroFullPhoneNumber; } } } m_CrmAccount.put("Phone",v_CrmPhone); // // balances v_XeroReceivables = 0.0; v_XeroPayables ...