English
Function Platform Limits
About 655 wordsAbout 2 min
2026-01-09
Summary
This document lists the runtime limits of the Function Platform (APL), including function writing limits, HttpAPI call limits, internal API call limits, execution time limits, memory limits, and other constraints. It helps developers design function logic properly and avoid triggering platform throttling.
Limit List
| Category | Limit Category | Limit Value | Scope | Remarks |
|---|---|---|---|---|
| Function writing limits | Variable names that cannot be used in closures | owner; this; delegate | Network-wide | This limit applies in Range.each or list.foreach closures |
| External HttpAPI call limits from functions | Timeout limits | connectTimeout, default 2s; readTimeout, 5s, maximum 120s | Network-wide | |
| Retry count | connectTimeout, retries 3 times by default and can be changed by parameter; readTimeout, does not retry by default and can be changed by parameter; maximum retry count is 3 times for both types | Network-wide | ||
| Maximum POST data size | 5M | Network-wide | ||
| Internal API call limits from functions | Fx.object call count limit | 300 (per function) | New enterprises | |
| Fx.object.editTeamMember, Fx.object.addTeamMember, Fx.object.addOutTeamMember, Fx.object.deleteTeamMember, Fx.object.changeOwner, Fx.object.batchChangeOwner | 100 (per function) | Network-wide | ||
| Fx.function call count limit | 50 (per function) | New enterprises | ||
| Fx.http | 50 (per function) | New enterprises | ||
| Fx.message | 50 (per function) | New enterprises | ||
| Fx.crm, Fx.work, Fx.file, Fx.AI, Fx.tag, Fx.approval | 100 (per function) | New enterprises | ||
| Function execution limits | Execution limit for a single function on a single data record per unit time | Limited to 100 times per minute | Network-wide | An error is reported when the function execution count limit is exceeded |
| Concurrent function executions for a single enterprise | Concurrent execution count is limited to 35 | Network-wide | ||
| Scheduled task execution limits | Bound object - daily executed data row limit | Professional Edition: none; Flagship Edition: 100k; Unlimited Edition: 300k | Network-wide | Can be extended by purchasing resource packs separately |
| Unbound object - daily execution duration limit | Professional Edition: none; Flagship Edition: half an hour; Unlimited Edition: 1.5 hours | Network-wide | Can be extended by purchasing resource packs separately | |
| Execution time limits | New functions have runtime limits based on namespace | Button 20s Process 5min Custom controller 5min Scheduled task 10min E-signature 180s Authentication provider 180s Interconnected data synchronization 60s Validation function 50s Data integration 300s Event listener 5min ERP integration platform 180s Debug execution 120s Default for others 15s | All functions | See the execution time details table |
| Memory limits | The platform calculates memory usage throughout the entire execution process and limits memory information for a single function execution | Old functions: 512m; new functions: 256m | January 1, 2024 is the dividing line between old and new functions |
New enterprises: Enterprises opened after February 4, 2021.
Execution Time Details
| Namespace | Limit Value |
|---|---|
| Debug execution | 120s |
| Button | 20s |
| Process | 300s |
| Custom controller | 300s |
| Scheduled task | 600s |
| E-signature | 180s |
| Authentication provider | 180s |
| Interconnected data synchronization | 60s |
| Validation function | 50s |
| Data integration | 300s |
| Event listener | 300s |
| ERP integration platform | 180s |
| Default | 15s |
Changelog
| Version | Date | Changes | Owner |
|---|---|---|---|
| v1.0 | 2026-01-09 | Initial version |
Background
The Function Platform (APL) has limits on function writing, API calls, execution time, memory usage, and other aspects to ensure stable platform operation and fair resource allocation. This document summarizes all known limits for developers to reference when designing function logic.
Notes
- Exceeding the execution count limit will cause a function execution error. It is recommended to add exception handling in code.
- Scheduled task limits differ across enterprise editions (Professional Edition/Flagship Edition/Unlimited Edition).
- The memory limits for old and new functions are divided by January 1, 2024.
- Higher quotas can be extended by purchasing resource packs separately.
Code Examples
// It is recommended to check the call count before calling an API to avoid triggering throttling
if (Fx.object.callCountThisMinute < 300) {
def data = Fx.object.query("object_Test__c", [])
// Process business logic normally
} else {
// The call limit has been reached. Wait until the next minute before executing
log.warn("The object API call count has reached the upper limit. Please try again later.")
}