Zoho Deluge - Get User Timezone, Country and Location
- Category: Zoho
- Hits: 15667
A quick article just as a note to get the users country information from a third-party API based on the given IP address.
How?
Well this is just a list of free 3rd-party APIs and the below code is dependent on these being online and working...
Zoho Deluge: Convert Map to URL Parameters
- Category: Zoho
- Hits: 13737
A quick article on converting a Map (associative array with keys and values) into a URL string to pass as URL parameters.
How?
Let's first define a map:
Zoho Deluge - Pad with leading Zeros
- Category: Zoho
- Hits: 14683
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:
Zoho Deluge - Determine Quarter from Date with Fiscal Year
- Category: Zoho
- Hits: 13576
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:
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"};
Zoho CRM: APIv2 using PHP & cURL
- Category: Zoho
- Hits: 22232
This is an article documenting how to access ZohoCRM with API v2 using PHP and cURL. The first few functions are to manage OAuth v2 and generate the refresh and access tokens. The second snippet of code below is using the functions to read data from Zoho CRM and to write data back to the system.
Why?
I've rewritten this code a few times and want to store the finalized version (following updates) making it as generic as I can in order to apply it to any client.
How?
Firstly, you will need to browse to https://accounts.zoho.eu/developerconsole and register your new app (or the one you will have completed once copying the below scripts).
Zoho Templates - Font size is inexplicably tiny
- Category: Zoho
- Hits: 23134
This is an article resolving an issue where a template will shrink all the text when in PDF preview.
Why?
Ok doesn't need a song and dance about it, but I went home yesterday downtrodden by an issue which I'd been working on for most of the day where I would remove all the styling and the text would still appear small. Sure I resized the text to about 46pt and everything was over 3000px in width but this is not good for a final solution. I thought maybe there was a setting for the default font size or where I've accidentally zoomed out in the browser... but these were red herrings as I have other templates that work fine.
How?
The error is one of those that you wouldn't consider relevant in this case, after all, all styling was removed... Here are two screenshots to demonstrate the issue:
Zoho Deluge - Get Refresh/Access Token API v2
- Category: Zoho
- Hits: 45143
A sorta quick article to note how I can generate refresh tokens and access tokens using Zoho Deluge code (so within Zoho Creator, CRM or Books) without XML calls.
Why?
I find myself using this more and more now that API v1 is on the way out and Zoho Deluge by itself is limited somewhat with regards to functionality and record editing when compared to API v2.
How?
Note that this is using Zoho Deluge and not another server-side script such as PHP to send the requests via API.
Zoho Deluge - Counting in a Map dataType
- Category: Zoho
- Hits: 15861
A quick article on how to count within a map. I didn't have too much difficulty getting this to work and I'm not sure if there are better ways of counting so I'm documenting it to see if I can refine the code or find a some short codes that will do the same.
Why?
I'm aiming to automate a process which counts the number of products allocated to an account or in total for a purchase order. Let us assume we have the following in a form/report called "Stock_Upload":
RowID Name SKU Account Email 0001 Test Product 1 TEST001The code is a for loop which iterates through each row, assigning an entry for a new product or account, and specifying the quantity for each.This email address is being protected from spambots. You need JavaScript enabled to view it. 0002 Test Product 1 TEST001This email address is being protected from spambots. You need JavaScript enabled to view it. 0003 Test Product 1 TEST001This email address is being protected from spambots. You need JavaScript enabled to view it. 0004 Test Product 1 TEST001This email address is being protected from spambots. You need JavaScript enabled to view it. 0005 Test Product 2 TEST002This email address is being protected from spambots. You need JavaScript enabled to view it. 0006 Test Product 1 TEST001This email address is being protected from spambots. You need JavaScript enabled to view it. 0007 Test Product 1 TEST001This email address is being protected from spambots. You need JavaScript enabled to view it.
How?
So depending on the number of levels, the count will be with a series if then else statements. See the results/yield section to determine which best fits your scenario:
Page 24 of 25
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
Latest Articles
Accreditation



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

bc1qf6elrdxc968h0k673l2djc9wrpazhqtxw8qqp4
0xb038962F3809b425D661EF5D22294Cf45E02FebF
Paypal:

Bitcoin:

Ethereum:
