What?
So this is a super quick note that I'll probably remember anyway but just in case, I'm writing this article so I don't spend time researching it later.

Why?
I'm synchronizing Xero Invoices with Zoho CRM Invoices and noticed that Xero stores its dates in Unix Timestamps.

How?
We're going to filter out the unix seconds from the date provided by Xero then apply a toTime() function to it.

What?
A very quick article on how to push a multi-select picklist from CRM to Creator.

Why?
We're trying to create a record in Creator off a button on the CRM Potential/Deal record. The CRM module has a multi-select picklist which will use commas to delimit but one of the options has a comma in its value.
copyraw
// What I have in CRM:
{"My_MultiPicklist":["Option1","Options 2, 3"]}

// What Creator understands: FAILS
{"My_MultiPicklist":["["Option1","Options 2, 3"]"]}
  1.  // What I have in CRM: 
  2.  {"My_MultiPicklist":["Option1","Options 2, 3"]} 
  3.   
  4.  // What Creator understands: FAILS 
  5.  {"My_MultiPicklist":["["Option1","Options 2, 3"]"]} 
With workaround .toString()
copyraw
// What Creator understands: FAILS
{"My_MultiPicklist":["Option1","Options 2"," 3"]}
  1.  // What Creator understands: FAILS 
  2.  {"My_MultiPicklist":["Option1","Options 2",3"]} 

How?
So the way to push this value over to Creator is by converting the list to a string... notably comma delimited:
Category: Zoho :: Article: 719

Zoho Deluge - Connect to Xero API

What?
This is an article to document a standalone function which generates an access token from within Zoho CRM so you can access your Xero instance. There are 3rd-party API libraries and SDKs out there but as usual with financial technologies (fintech), I don't trust them. Here's how to do it in pure Deluge with a Zoho CRM custom function.

Why?
It is quite a common request so I'm using this article to refine a generic method of connecting to any client's Xero. The aim is to have a function that initializes a valid connection and then append code to do what we want to do in Xero such as synchronizing invoices or contacts.

How?
So the key thing to remember here is that a Refresh Token in Xero expires immediately after use. You use a Refresh Token to generate a new Access Token which can be reused over the next 30 minutes. In the response, you will also get a new Refresh Token which you should store away for later use when you want to generate a new Access Token.


Zoho Deluge: Push Item to Shopify API

What?
The following is a script template that I can quickly adapt for Zoho and Shopify integration. This will take an item from Zoho Inventory and post it to Shopify.

How?
Pretty quick to do in Zoho Deluge but first you need to go register the app in your client's Shopify store:

What?
This is an article with the snippet of code required to duplicate or clone a record in Zoho CRM using Zoho Deluge.

Why?
The aim here is to have a scheduled task that on the 1st of every month, takes the invoices for the month before, and duplicates each one for the new month.

How?
First you have to get all the applicable fields from the settings API.

What?
This is an article because there was no documentation that I could find that describes how to do this. When an invoice is created, not by clicking on the "convert sales order to invoice" button, I needed a way to programmatically link the sales order to the invoice.
Zoho Deluge: Associate Sales Order to Invoice

Why?
The documentation around the API does not detail how to do this. I also couldn't find any search result via Google or DuckDuckGo (can't say for Bing, I never get around to searching that). This took several hours but it is possible, I was just about to give up even after having spoken to Zoho Support... And then I started updating multiple fields at the same time.

How?
Through sweat and perseverance.

What?
There may be other articles out there documenting this but I can't keep trying to find these in Google so referring to my own website, this is a doddle for me to find each time.

Why?
I have to do this so often that it deserves an article. Though writing a whole page for this is probably unwarranted so I may rename this article later to common things I need to do in Zoho Deluge.

How?
So going through the forums you may find the following example:

What?
A quick article on how to debug some errors in Zoho.

Why?
I wanted a general note to list certain errors that we get when we do certain things in Zoho but didn't want to write a separate page for each minor issue.

How?
So I'm going to try and list solutions to minor errors we run into.

What?
This is a quick article on what should be a simple mathematics equation: Determine the quarter from a given month.

Why?
Fine if you are determining the quarter by the month and your Fiscal year starts from January, simply divide by 3...

How?
I'm showing this in Zoho Deluge but the logic can be adapted to other code. You will need this snippet of code for the examples below:
copyraw
l_Months = {1,2,3,4,5,6,7,8,9,10,11,12};
l_MonthNames = {"January","February","March","April","May","June","July","August","September","October","November","December"};
  1.  l_Months = {1,2,3,4,5,6,7,8,9,10,11,12}
  2.  l_MonthNames = {"January","February","March","April","May","June","July","August","September","October","November","December"}
Category: Zoho :: Article: 703

What?
This is a quick article to demonstrate how to compare two datetime values with the timezone specified.

Why?
A client's ZohoCRM had a different timezone setting than the user a script would be run as. The time difference was just one hour but this caused problems if comparing two datetime values. In this particular case, we needed to check on the expiry of an access token used in OAuth2.0 for an API.

How?
All with deluge but we will split the date and time value obtained from a CRM field and compare it to the current time combined with a timezone. In this particular case, we will switch the current time to Europe/London (You can use an abbreviation such as GMT but this doesn't seem to check if daylight savings is in effect):

Credit where Credit is Due:


Feel free to copy, redistribute and share this information. All that we ask is that you attribute credit and possibly even a link back to this website as it really helps in our search engine rankings.

Disclaimer: Please note that the information provided on this website is intended for informational purposes only and does not represent a warranty. The opinions expressed are those of the author only. We recommend testing any solutions in a development environment before implementing them in production. The articles are based on our good faith efforts and were current at the time of writing, reflecting our practical experience in a commercial setting.

Thank you for visiting and, as always, we hope this website was of some use to you!

Kind Regards,

Joel Lipman
www.joellipman.com

RSS Feed

Related Articles

Joes Revolver Map

Joes Word Cloud

uploaded   table   parameter   script   where   order   following   field   report   system   user   display   joomla   files   form   creator   license   deluge   note   using   database   create   code   function   first   name   windows   zoho   google   value   would   date   work   used   source   added   time   website   server   data   find   error   client   mysql   list   version   case   page   need   file   JoelLipman.Com

Accreditation

Badge - Certified Zoho Creator Associate
Badge - Certified Zoho Creator Associate

Donate & Support

If you like my content, and would like to support this sharing site, feel free to donate using a method below:

Paypal:
Donate to Joel Lipman via PayPal

Bitcoin:
Donate to Joel Lipman with Bitcoin bc1qf6elrdxc968h0k673l2djc9wrpazhqtxw8qqp4

Ethereum:
Donate to Joel Lipman with Ethereum 0xb038962F3809b425D661EF5D22294Cf45E02FebF
© 2024 Joel Lipman .com. All Rights Reserved.