Zoho Deluge - Counting in a Map dataType
- Category: Zoho
- Hits: 13516
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:
Zoho Deluge - First Monday of Month or Last Tuesday of Month
- Category: Zoho
- Hits: 15687
An article on setting a date field to either the first Monday of the next month or to the last Tuesday of the current/next month. What I mean by the last Tuesday is if the last Tuesday of the month is before the current date, then set it to the last Tuesday of next month.
Why?
This was a request by a client who instead of specifying the 1st of every month, or 15th of each month, to say the first Monday of the month (ignoring bank holidays) or to say the last Tuesday of the month.
How?
Quite easily. For the first Monday of the month, it is likely that even if today was the first day of the month and coincidentally a Monday, then we would want to specify the field date to be the first Monday of the next month. If however we want the last Tuesday of the month and that Tuesday happens before today, then we want the last Tuesday of the next month.
Zoho Deluge - Store and repopulate a multi lookup list in Creator
- Category: Zoho
- Hits: 11757
A quick reminder on how I got a working snippet of code to store the entries in the lookup already selected, check against another table/form for valid options, repopulate the list with the selected item and filtering the options available for selection.
Why?
This was for a multi lookup with staff as the list entries. The lookup needed to filter against various forms such as Staff Rotas, Leave Requests, Qualifications and some others.
How?
The aim/objective is the following:
- Store what was already selected in the lookups
- Clear the lookups list
- Restore what was originally selected as selected.
- Repopulate with a filter list of options (not selected but available)
Zoho Deluge - Get Current User ID
- Category: Zoho
- Hits: 16222
This is a quick article on different ways to get the current user ID in Zoho through code.
How?
I'm not a fan of method #1 but I only started developing in Zoho recently when API v1 was already being deprecated (end of life at the end of this year). So I'm familiar with the methods in API v2 or just using newer functions.
Zoho Deluge - Update Creator from CRM
- Category: Zoho
- Hits: 19132
This is an article documenting how to update Creator from a workflow written in a Deluge Script held in ZohoCRM.
Why?
I've also started this article to document an issue we encountered where our code was as per the documentation provided, and the responses returned as successful, but the target fields did not update. This was as a result after changing the owner of the Creator app to another person and adding our previous Super Admin account as a "Developer".
How?
I'm going to demo two methods here using the <connection_link>
Zoho Deluge: Check Time Booking Slots
- Category: Zoho
- Hits: 6613
Just wanted a note to get in my head the logic if checking a requested time slot isn't a double-booking (as in, the time slot doesn't overlap a previous booking.
How?
Zoho Deluge - MD5 function
- Category: Zoho
- Hits: 11217
So this is NOT an article on how to create a MD5 function for an ETag in Zoho Deluge as I expected it would be. At time of print, the Zoho documentation (and Google search results) make no mention of using MD5 in an encryption task.
Why?
I'm trying to create an ETag for a synchronization process between Zoho Creator and Zoho CRM. Combining all the fields to compare into a single field can't be done via the documented methods (base64, urlencode or AES) as this exceeds 255 characters (it could be a multiline but this would defeat the objective of an Etag).
How?
Zoho Inventory Template Issue: First Page is Blank
- Category: Zoho
- Hits: 9570
So I thought I'd write an article to help me resolve the particular issue where the organization details and the header of the product line items table would display on the first page, the product line items would then print on the second page, with the terms and conditions or small print notes on a third page.
How?
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:
