Statement Limitation
The maximum number of statements that can be executed in one function is 5000.
Note: The number of statements executed need not always be equal to the number of statements present in a function.
Case 1: for each task
Consider the following script,
- for each element in list_var
- {
- //Statement 1
- //Statement 2
- }
Let us assume, the list variable - list_var has 5 elements. This conveys that the for each loop runs 5 times. So,
- The total number of statements present is 3 (includes the for each task and the two statements within).
- The total number of statements executed is 15 (3 statements are executed 5 times).
The statement limitation imposed, accounts only the number of statements executed.
Case 2: sendmail and invokeUrl tasks
The sendmail and invokeUrl tasks require more than one line of script to perform their respective functions. However, on execution, the task as a whole is treated as one statement.
Consider the following example,
- sendmail
- [
- From: zoho.adminuserid
- To: "john@zylker.com"
- Subject: "Reminder"
- Message: "Hello, this is to remind you that your invoice is due next week. Please let me know if you have any questions. Thank you."
- ]
In the above script, the total number of statements executed is 1.
Recursive Function Limitation
The maximum number of function calls that can be executed within one function is 75.
Task Limitations
Sendmail Task Limitation
1. The following restrictions are imposed on the sendmail task to avoid spam emails.
- In services other than Zoho Cliq, the From: address should only be specified as zoho.adminuserid, or zoho.loginuserid*, or a verified email address. Otherwise, the sendmail task will fail.
- In Zoho Cliq, the From: address should only be specified as zoho.loginuserid, or a verified email address. Otherwise, the sendmail task will fail.
- The maximum size of attachments that can be sent using a sendmail task is 15 MB.
InvokeUrl Task Limitation
The maximum content length of the response that can be returned by an invokeUrl task is 5 MB.
Time Zone Limitations
The supported time zone database names that can be used in the toString and toTime built-in functions, to convert date and time between time zones can be found here.