Salesforce App Limits Cheatsheet PDF
Salesforce App Limits Cheatsheet PDF
Reference Guide
Version 33.0, Spring ’15
@salesforcedocs
Last updated: April 24, 2015
© Copyright 2000–2015 salesforce.com, inc. All rights reserved. Salesforce is a registered trademark of salesforce.com, inc.,
as are other names and marks. Other marks appearing herein may be trademarks of their respective owners.
CONTENTS
Visualforce Limits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
SALESFORCE LIMITS QUICK REFERENCE GUIDE OVERVIEW
1
CHAPTER 1 Salesforce Application Limits
Active Lookup Filters 5 per object 5 per object 5 per object 5 per object 5 per object 5 per object 5 per object
Active Validation Rules N/A 20 per object 20 per object 20 per object 100 per 500 per 100 per
object object object
Attachments: Maximum Size N/A 25 MB for file 25 MB for file 25 MB for file 25 MB for file 25 MB for file 25 MB for file
of Attachment in the Notes attachments. attachments. attachments. attachments. attachments. attachments.
& Attachments Related List1 2 GB for feed 2 GB for feed 2 GB for feed 2 GB for feed 2 GB for feed 2 GB for feed
attachments. attachments. attachments. attachments. attachments. attachments.
Category Groups: Maximum N/A N/A N/A N/A 5 category 5 category 5 category
Default Number of Category groups and 3 groups and 3 groups and 3
Groups active active active
category category category
groups groups groups
2
Salesforce Application Limits Salesforce Features and Editions Limits Table
Content Deliveries: Default 20,000 20,000 20,000 20,000 20,000 20,000 20,000
Delivery View Counts per
Rolling 24-hour Window
Content Deliveries: 25 MB 25 MB 25 MB 25 MB 25 MB 25 MB 25 MB
Maximum File Size for Online
Viewing
• 2 GB
• 2 GB when uploaded via REST API
• 38 MB when uploaded via SOAP API
• 10 MB for Google Docs
• 10 MB when uploaded via Visualforce
Content: Maximum Number 2,000 2,000 2,000 2,000 2,000 2,000 2,000
of Libraries
Content: Maximum Number 2,000,000 2,000,000 2,000,000 2,000,000 2,000,000 2,000,000 2,000,000
of Content Documents
Content: Maximum Number 36,000 36,000 36,000 36,000 36,000 36,000 2,500
of Content Documents and
Versions in a 24–hour Period
(Adjustable)
Custom Fields 5 per object 25 per object 100 per 100 per 500 per 800 per 500 per
object object object object object
3
Salesforce Application Limits Salesforce Features and Editions Limits Table
Custom Links: Maximum 1,024 1,024 1,024 1,024 1,024 1,024 1,024
Length of Link Label characters characters characters characters characters characters characters
Custom Links: Maximum 3,000 bytes2 3,000 bytes2 3,000 bytes2 3,000 bytes2 3,000 bytes2 3,000 bytes2 3,000 bytes2
Length of Link URL
The custom objects contained in a managed package publicly posted on the AppExchange
don't count against the limits for your Salesforce Edition.
Soft-deleted custom objects and their data count against your limits. We recommend
that you hard delete or erase custom objects you no longer need.
Custom Objects: Deletion of N/A In a many-to-many relationship, a user can’t delete a parent record if more than 200
Parent Records in a junction object records are associated with it and if the junction object has a roll-up
Many-to-Many Relationship summary field that rolls up to the other parent.
Custom Settings: Cached The lesser of N/A The lesser of N/A The lesser of The lesser of The lesser of
Data Limit 10 MB or 1 10 MB or 1 10 MB or 1 10 MB or 1 10 MB or 1
MB MB MB MB MB
multiplied by multiplied by multiplied by multiplied by multiplied by
the number the number the number the number the number
of of of of of
full-featured full-featured full-featured full-featured full-featured
user licenses user licenses user licenses user licenses user licenses
in your in your in your in your in your
organization organization organization organization organization
Divisions: Maximum Number N/A N/A N/A 100 100 100 N/A
of Divisions
4
Salesforce Application Limits Salesforce Features and Editions Limits Table
Documents: Maximum File 255 255 255 255 255 255 255
Name Size (Including File characters characters characters characters characters characters characters
Extension Name)
Entitlement Processes and N/A N/A N/A N/A For Enterprise, Unlimited, Performance, and
Milestones Developer Editions, you can have:
• 20 Entitlement processes
• 10 Milestones for each entitlement
process
Contact Salesforce for information on
increasing the number of entitlement
processes and milestones.
Fiscal Years: Maximum 250 250 250 250 250 250 250
Number of Custom Fiscal
Years
5
Salesforce Application Limits Salesforce Features and Editions Limits Table
Formulas: Maximum 5,000 bytes 5,000 bytes 5,000 bytes 5,000 bytes 5,000 bytes 5,000 bytes 5,000 bytes
Formula Size (in Bytes) When
Compiled
Formulas: VLOOKUP 10 per object 10 per object 10 per object 10 per object 10 per object 10 per object 10 per object
Functions
Objects: Maximum Number 100,000 100,000 100,000 100,000 100,000 100,000 100,000
of Deleting Combined
Objects and Child Records
Permission sets: Maximum N/A N/A N/A N/A 1,000 1,000 1,000
Number of Permission Sets
Permission sets: Maximum N/A N/A N/A N/A 200 200 200
Number of Permission Sets
that Can Be Edited from the
List View
6
Salesforce Application Limits Salesforce Features and Editions Limits Table
Quote PDF: Maximum Logo N/A N/A N/A 150 pixels 150 pixels 150 pixels 150 pixels
Height
Recycle Bin: Maximum 25 times 25 times 25 times 25 times your 25 times 25 times 25 times
Number of Records your storage your storage your storage storage your storage your storage your storage
capacity in capacity in capacity in capacity in capacity in capacity in capacity in
MBs MBs MBs MBs MBs MBs MBs
Reply : Maximum Number of N/A N/A N/A N/A 1,000 1,000 N/A
Characters
Reply (Private): Maximum N/A N/A N/A N/A 4,000 4,000 N/A
Number of Characters (with
Chatter Answers
Optimize Question
Flow enabled)
Replies (Public): Maximum N/A N/A N/A N/A 32,000 32,000 N/A
Number of Characters (with
Chatter Answers
Optimize Question
Flow enabled)
Shared Activities For all editions: If your organization has enabled Shared Activities, you can relate as many as 50 contacts
to non-recurring and non-group tasks, and non-recurring events. You assign one primary contact; all
others are secondary contacts.
Sharing Rules N/A N/A N/A For Professional, Enterprise, Unlimited, Performance, and
Developer Editions, administrators can create up to 300
sharing rules per object, including up to 50 criteria-based
rules.
7
Salesforce Application Limits Salesforce Features and Editions Limits Table
Visual Workflow N/A N/A N/A N/A For Enterprise, Unlimited, Performance, and
Developer Editions, each flow can have up
to:
• 50 versions
• 2000 steps
Each organization can have up to:
• 500 active flows
• 1000 flows total
• 30,000 waiting interviews at a given
time
• 1000 events being processed per hour
per hour
• 20,000 defined relative alarm events
across all flows and flow versions
8
Salesforce Application Limits Increased App Limits with Expansion Pack and Unlimited
Apps Pack
1
You can add an attachment to the Attachments related list of a case, solution, campaign, task, or event, or to the Notes and Attachments
related list of an account, contact, lead, opportunity, or custom object. If you don't see the related list on task or event page layouts, you
may need to ask your administrator to add it. All file types are supported, including everything from Microsoft® PowerPoint presentations
and Excel spreadsheets, to Adobe® PDFs, image files, audio files, and video files.
2
When data is substituted for the tokens in the URL, the link may exceed 3,000 bytes. Your browser may enforce additional limits for
the maximum URL length.
3
Each relationship is included in the maximum number of custom fields allowed.
4
The limit of 100 external objects applies regardless of how many Lightning Connect add-ons you purchase for your organization.
5
As a best practice, don't exceed 10,000 child records for a master-detail relationship.
6
If your organization exceeds its daily Web-to-Case or Web-to-Lead limit, the default case owner or default lead creator receives a
notification email that contains information about the case or lead. When your organization reaches the 24-hour limit, Salesforce stores
additional requests in a pending request queue that contains both Web-to-Case and Web-to-Lead requests. The requests are submitted
when the limit refreshes. The pending request queue has a limit of 50,000 combined requests. If your organization reaches the pending
request limit, additional requests are rejected and not queued. Your administrator receives email notifications for the first five rejected
submissions. Contact Salesforce Customer Support to change your organization’s pending request limit.
Increased App Limits with Expansion Pack and Unlimited Apps Pack
Increase app-related limits in your organization with Expansion Pack or Unlimited Apps Pack.
Custom Tabs 10 25
9
Salesforce Application Limits Salesforce1 Reporting Limits
API Calls Depends on the license type. Current limit + 4,000 calls
Data Storage 20 MB per user or 1 GB per organization, 120 MB per user or 1 GB per organization,
whichever is greater whichever is greater
Scheduled Reports N/A N/A N/A One per One per Two per One per
(Emailed reports can be up hour2 hour2 hour2 hour2
to 10 MB.) (off-peak (off-peak
hours only3) hours only3)
(Limited to (Limited to
three three
preferred preferred
10
Salesforce Application Limits Campaign Limits
Scheduled Dashboard N/A N/A N/A N/A One per Two per N/A
Refreshes hour2 hour2
Reporting Snapshots N/A N/A N/A One per One per Two per One per
hour2 hour2 hour2 hour2
(off-peak (off-peak
hours only3) hours only3)
(Limited to (Limited to
one one
preferred preferred
start time per start time per
day, which day, which
can't be can't be
changed) changed)
1
These limits apply to the report builder. If you’re using the report wizard, the limit is 10.
2
Up to a possible maximum of 200, total.
3
Off-peak hours are between 6 PM and 3 AM local time.
Campaign Limits
Available in: Professional, Enterprise, Performance, Unlimited, and Developer Editions
11
Salesforce Application Limits Chatter Limits
A .csv file of existing contacts Campaign Update Wizard 50,000 per import file
A list view of existing contacts Adding Contacts or Leads from a List View 250 per list page
to a Campaign
A .csv file of new leads Using the Lead Import Wizard with 50,000 per import file
Campaigns
A list view of existing leads Adding Contacts or Leads from a List View 250 per list page
to a Campaign
Chatter Limits
Feature Limit EDITIONS
12
Salesforce Application Limits Chatter Limits
Feature Limit
Members in a Group Unlimited
Feeds
Number of characters in a mention search string 500 characters for a person's first and last name
(combined), or for a group name
Bookmarks Unlimited
Favorites 50
Maximum number of posts you can see in your feed at any given The 500 most recent posts. This limit doesn’t
time apply to profile, group, and record feeds.
Files
Skills
Topics
13
Salesforce Application Limits Custom Field Limits
1
All Chatter groups count toward this limit, including unlisted and archived groups. For example, if you're a member of 90 groups, of
which 10 are archived, you can only request to join 10 more groups.
2
You can follow a maximum combined total of 500 people, topics, and records. To see how many items you’re following, view the
Following list on your profile.
Posts and comments that users make in Chatter are retained during the entire time that a customer's applicable organization remains
provisioned. We reserve the right to enforce limits on:
• The number of system-generated tracked feed updates. Currently tracked feed updates that are older than 45 days and have no
likes or comments are deleted automatically. The tracked feed updates no longer appear in the feed. However, if auditing is enabled
for a tracked field, the audit history for that field is still available.
• The number of email notifications that can be sent per organization per hour.
The limits are subject to change. Contact Salesforce for more information.
File Type File Extensions Maximum File Size for Text Within
the File to be Searchable
HTML .htm, .html, .xhtml 5 MB
PDF .pdf 25 MB
RTF .rtf 5 MB
XML .xml 5 MB
14
Salesforce Application Limits Email Limits
The number of custom fields allowed per object varies according to your Salesforce Edition. The maximum number of activities, long
text area fields, rich text area fields, relationship fields, and roll-up summary fields varies as well. The following table shows the maximum
limits for each custom field type and edition.
Long Text Area There are no limits to the number of rich text area and long text area fields that an object can contain, although your
Fields Edition’s limit for the total number of custom fields allowed on an object, regardless of field type, applies. Each object
Rich Text Area can contain a total of 1.6 million characters across long text area and rich text area fields. When you create a long text
Fields area or rich text area field, you set a character limit for the field—the maximum length of the text that can be entered.
The default character limit for long text area and rich text area fields is 32,768 characters (32 KB). The maximum
character limit for long text area and rich text area fields is 131,072 characters (128 KB). The minimum character limit
is 256 characters.
The maximum size of an image that can be uploaded in a rich text area field is 1 MB.
Relationship No additional 40 40 40 40 40 40
Fields limit
Roll-up No additional 10 10 10 10 10 10
Summary limit
Fields
Email Limits
Feature Personal Contact Group Professional Enterprise Unlimited Developer
Edition Manager Edition Edition Edition and Edition
Performance
Edition
Email Templates: Maximum 384 KB for • 384 KB for text, HTML, and custom HTML templates
Size text email
• 1 MB for Visualforce templates
templates
15
Salesforce Application Limits Email Limits
Email Services: Maximum N/A N/A N/A 25 MB1 25 MB1 25 MB1 25 MB1
Size of Email Message
(includes email headers,
body, attachments, and
encoding)
Extended Mail Merge: 1,000 1,000 1,000 1,000 1,000 1,000 1,000
Maximum Number of
Records
Merge Field: N/A N/A For Group, Professional, Enterprise, Unlimited, Performance, and Developer
Case.Email_Thread Editions:
• Maximum number of emails: 200
• Email body truncation size: 32 KB
16
Salesforce Application Limits Salesforce Knowledge Limits
1
The maximum size of email messages for Email Services varies depending on language and character set. The size of an email message
includes the email headers, body, attachments, and encoding. As a result, an email with a 25 MB attachment would likely exceed the
25 MB total size limit for an email message, after accounting for the size of headers, body, and encoding.
For more information on outbound email limits, see Email Limits.
Maximum N/A N/A N/A N/A 500 custom fields per article type
number of
custom fields
per article type
Maximum file N/A N/A N/A N/A File fields are counted as
field size attachments and can be up to 25
MB.
Maximum N/A N/A N/A N/A You can have up to 100 links to
unique article different Salesforce Knowledge
references articles in one rich text field.
(links) in a rich
text area field
Article history N/A N/A N/A N/A Article events are tracked for up
tracking to 18 months.
17
Salesforce Application Limits Salesforce Knowledge Limits
Maximum number of N/A N/A N/A N/A 5 category groups and 3 active category groups
data category groups
and active data
category groups
Maximum number of N/A N/A N/A N/A 100 categories in a data category group
categories per data
category group
Maximum number of N/A N/A N/A N/A 5 levels in a data category group hierarchy
levels in data
category group
hierarchy
Maximum number of N/A N/A N/A N/A 8 data categories from a data category group
data categories from assigned to an article
a data category
group assigned to an
article
18
Salesforce Application Limits Picklist Limits
Picklist Limits
Available in: All Editions
Standard Picklists are not available in Database.com
The maximum number of entries you can have in a picklist is determined by the total number of characters allowed in the picklist, which
is 15,000 characters. Note that each entry includes a linebreak and a return character that are not visible. These two additional characters
per entry are counted as part of the 15,000 character limit.
Task Priority 50
Case Priority 50
19
Salesforce Application Limits Sites Limits
Sites Limits
Available in: Developer, Enterprise, Performance, and Unlimited Editions
Edition Maximum Bandwidth Limit (per rolling Service Request Time (per Maximum Page
Number of Sites 24-hour period per site) rolling 24-hour period per Views
site)
Developer Edition 1 500 MB 10 minutes N/A
20
Salesforce Application Limits Workflow and Approval Limits
Workflow Rules N/A N/A N/A Each workflow rule can have:
• 10 time triggers
• 40 immediate actions
• 40 time-dependent actions per time trigger
The immediate actions and each time trigger can have:
• 10 email alerts
• 10 tasks
• 10 field updates
• 10 outbound messages
2
• 10 flow triggers
Workflow Emails Per N/A N/A N/A 1,000 per 1,000 per 15 per 1,000 per
Day standard standard standard standard
Salesforce Salesforce Salesforce Salesforce
license license license license
2,000,000 per 2,000,000 per 2,000,000 per 2,000,000 per
organization organization organization organization
1
Workflow and approvals are available for an additional cost in: Professional Edition
2
Flow trigger workflow actions, formerly available in a pilot program, have been superseded by the Process Builder. Organizations that
are using flow trigger workflow actions may continue to create and edit them, but flow trigger workflow actions aren’t available for new
organizations. For information on enabling the Process Builder in your organization, contact Salesforce.
21
Salesforce Application Limits Data Related Limits
is 2,000,000. This limit applies to emails sent through email alerts in workflow rules, approval processes, flows, processes, or the REST
API.
After your organization has reached its daily workflow email limit:
• Any emails in the workflow queue left over and not sent that day are discarded. Salesforce doesn't try to resend them later.
• If a workflow rule with an action and an email alert is triggered, only the email action is blocked.
• Final approval, final rejection, approval, rejection, and recall email actions are blocked.
• An error message is added to the debug log.
The following items don't count against the workflow email limit:
• Approval notification emails
• Task assignment notifications
• Lead assignment rules notifications
• Case assignment rules notifications
• Case escalation rules notifications
• Force.com sites usage alerts
The limit restriction is based on activity in the 24-hour period starting and ending at midnight GMT. Adding or removing a user license
immediately adjusts the limit's total. If you send an email alert to a group, every recipient in that group counts against your daily workflow
email limit.
When workflow email alerts approach or exceed certain limits, Salesforce sends a warning email to the default workflow user or—if the
default workflow user isn't set—to an active system administrator.
The organization reaches 90% of the limit One warning email The limit and the organization's usage
of emails per day
The organization reaches 90% of the limit One warning email The limit and the organization's usage
of workflow emails per day
An email alert isn't sent because the A warning email after every 100 attempted The limit and the organization's usage
organization reaches the limit of emails per email alerts over the limit
day
An email alert isn't sent because the A warning email after every 100 attempted The limit and the organization's usage
organization reaches the limit of workflow email alerts over the limit
emails per day
22
Salesforce Application Limits Dates: Valid Range for Date Fields
Import Limits
This table lists the import limits by type of record, as well as the permissions required for the import.
EDITIONS
Type of record Import record limit Users with access Your edition determines the
Business accounts and contacts 500 at a time All users types of objects you can
owned by you import.
23
Salesforce Application Limits External Data Integration Limits
Cases
Campaigns
Contracts
Documents
Opportunities
Products
Note: Your import file cannot exceed 100MB in size, and each record in the file cannot be bigger than 400KB. In addition, each
imported note and each imported description cannot exceed 32KB. Descriptions longer than 32KB are truncated.
Maximum size of the result set from a query that involves external objects 8,388,608 bytes
Maximum size of the result set from a subquery that involves external objects 1,000 rows
Maximum joins per query across external objects and other types of objects 4
Maximum external object rows that are retrieved from an external data source that isn’t high-data-volume 50,000
Maximum length of the OAuth token that’s issued by the external system 1,020 characters
1
The limit of 100 external objects applies regardless of how many Lightning Connect add-ons you purchase for your organization.
Note: For each user, the maximum number of external objects to which you may grant object permissions is equal to the maximum
number of custom objects that the user is allowed to access. This limit is determined by the user license that’s assigned to the
user.
OData Queries per N/A N/A N/A N/A 10,000 10,000 1,000
Hour
24
Salesforce Application Limits Rules Limits
1
The limit of 100 external objects applies regardless of how many Lightning Connect add-ons you purchase for your organization.
Rules Limits
Different types of rules can have restrictions, depending on your Salesforce edition. The following table shows the restrictions with
respect to edition.
Total Rules Not Available Not Available Not Available 500 per object 500 per object 500 per object 500 per object
Allowed 2,000 per 2,000 per 2,000 per 2,000 per
(Limits apply to organization organization organization organization
any
combination of
workflow,
assignment,
auto-response,
and escalation
rules, both
active and
inactive.)
Assignment, Not Available Not Available Not Available For Professional, Enterprise, Developer, Unlimited, and Performance
Auto-response, Editions, each assignment, auto-response, and escalation rule can
and Escalation have:
Rules • 3,000 rule entries
• 300 formula criteria rule entries
• 25 filter criteria per rule entry
Total Actions Not Available Not Available Not Available 200 200 200 200
Allowed Per
Rule
25
Salesforce Application Limits Search Limits
Search Limits
Available in: All Editions except Database.com
The following file extensions and maximum file sizes are supported for Documents search.
PDF .pdf 25 MB
RTF .rtf 5 MB
XML .xml 5 MB
Note: The contents of documents that exceed the maximum sizes are not searched; however, the document fields are still
searched. Only the first 1,000,000 characters of text are searched. Text beyond this limit is not included in the search.
Storage Capacity
Storage is divided into two categories: file storage and data storage. File storage includes files in attachments, the Documents tab, the
Files tab, the File field, Salesforce CRM Content, Chatter (including user photos), and Site.com assets. Data storage includes the following:
• Accounts
• Article types (format: “[Article Type Name]”)
• Article type translations (format: “[Article Type Name] Version”)
• Campaigns
• Campaign Members
• Cases
• Case Teams
• Contacts
• Contracts
• Custom objects
• Email messages
26
Salesforce Application Limits Storage Capacity Limits
• Events
• Forecast items
• Google docs
• Ideas
• Leads
• Notes
• Opportunities
• Opportunity Splits
• Orders
• Quotes
• Quote Template Rich Text Data
• Solutions
• Tags: Unique tags
• Tasks
For file storage, Contact Manager, Group, Professional, Enterprise, Performance, and Unlimited Editions are allocated a per-user limit
multiplied by the number of users in the organization plus an additional per-organization allocation. For example, an Enterprise Edition
organization with 600 users receives 1,211 GB of file storage, or 2 GB per user multiplied by 600 users plus an additional 11 GB. A
Professional Edition organization with 600 users receives about 370 GB of file storage, or 612 MB per user multiplied by 600 users plus
an additional 11 GB.
For data storage, Contact Manager, Group, Professional, Enterprise, Performance, and Unlimited Editions are allocated either 1 GB or a
per-user limit, whichever is greater. For example, a Professional Edition organization with 10 users receives 1 GB because 10 users
multiplied by 20 MB per user is 200 MB, which is less than the 1 GB minimum. A Professional Edition organization with 100 users receives
more than the 1 GB minimum because 100 users multiplied by 20 MB per user is 2,000 MB.
File storage and data storage are calculated asynchronously, so your organization’s storage usage isn’t updated immediately if you import
or add a large number of records or files.
The values in the Storage Allocation Per User License columns below apply to Salesforce and Salesforce Platform user licenses. Other
standard user licenses, such as Communities user licenses, include additional storage. For a description of user licenses, see User Licenses
Overview. If your organization uses custom user licenses, contact Salesforce to determine if these licenses provide additional storage.
Salesforce Edition Data Storage Data Storage File Storage File Storage
Minimum Per Allocation Per User Allocation Per Allocation Per User
Organization License Organization License
Contact Manager 1 GB 20 MB 11 GB 612 MB
Group 1 GB 20 MB 11 GB 612 MB
Professional 1 GB 20 MB 11 GB 612 MB
Enterprise 1 GB 20 MB 11 GB 2 GB
Performance 1 GB 120 MB 11 GB 2 GB
Unlimited 1 GB 120 MB 11 GB 2 GB
27
Salesforce Application Limits File Related Limits
Salesforce Edition Data Storage Data Storage File Storage File Storage
Minimum Per Allocation Per User Allocation Per Allocation Per User
Organization License Organization License
Personal 20 MB (approximately N/A 20 MB N/A
10,000 records)
Note: The only feature license that provides additional storage is Salesforce CRM Content User. Each Salesforce CRM Content
User license provides an additional 512 MB of file storage, whether Salesforce CRM Content is enabled or not, bringing the total
file storage allocation per user to 612 MB. To find out whether your organization has Salesforce CRM Content enabled, contact
your administrator.
28
Salesforce Application Limits File Share Limits
29
CHAPTER 2 Force.com Platform Limits
Because Apex runs in a multitenant environment, the Apex runtime engine strictly enforces a number of limits to ensure that runaway
Apex doesn’t monopolize shared resources.
Total stack depth for any Apex invocation that recursively fires triggers due to insert, 16
3
update, or delete statements
Total number of callouts (HTTP requests or Web services calls) in a transaction 100
Maximum timeout for all callouts (HTTP requests or Web services calls) in a transaction 120 seconds
Maximum number of methods with the future annotation allowed per Apex invocation 50
30
Force.com Platform Limits Apex Governor Limits
Maximum CPU time on the Salesforce servers5 10,000 milliseconds 60,000 milliseconds
Maximum number of push notification method calls allowed per Apex transaction 10
Maximum number of push notifications that can be sent in each push notification method 2,000
call
1
In a SOQL query with parent-child relationship sub-queries, each parent-child relationship counts as an additional query. These types
of queries have a limit of three times the number for top-level queries. The row counts from these relationship queries contribute to the
row counts of the overall code execution. In addition to static SOQL statements, calls to the following methods count against the number
of SOQL statements issued in a request.
• Database.countQuery
• Database.getQueryLocator
• Database.query
2
Calls to the following methods count against the number of DML queries issued in a request.
• Approval.process
• Database.convertLead
• Database.emptyRecycleBin
• Database.rollback
• Database.setSavePoint
• delete and Database.delete
• insert and Database.insert
• merge and Database.merge
• undelete and Database.undelete
• update and Database.update
• upsert and Database.upsert
• System.runAs
3
Recursive Apex that does not fire any triggers with insert, update, or delete statements exists in a single invocation, with a
single stack. Conversely, recursive Apex that fires a trigger spawns the trigger in a new Apex invocation, separate from the invocation
of the code that caused it to fire. Because spawning a new invocation of Apex is a more expensive operation than a recursive call in a
single invocation, there are tighter restrictions on the stack depth of these types of recursive calls.
4
Email services heap size is 36 MB.
5
CPU time is calculated for all executions on the Salesforce application servers occurring in one Apex transaction—for the executing
Apex code, and any processes that are called from this code, such as package code and workflows. CPU time is private for a transaction
and is isolated from other transactions. Operations that don’t consume application server CPU time aren’t counted toward CPU time. For
example, the portion of execution time spent in the database for DML, SOQL, and SOSL isn’t counted, nor is waiting time for Apex callouts.
31
Force.com Platform Limits Apex Governor Limits
6
In a single transaction, you can only reference 10 unique namespaces. For example, suppose you have an object that executes a class
in a managed package when the object is updated. Then that class updates a second object, which in turn executes a different class in
a different package. Even though the second package wasn’t accessed directly by the first, because it occurs in the same transaction,
it’s included in the number of namespaces being accessed in a single transaction.
Note:
• Limits apply individually to each testMethod.
• Use the Limits methods to determine the code execution limits for your code while it is running. For example, you can use the
getDMLStatements method to determine the number of DML statements that have already been called by your program,
or the getLimitDMLStatements method to determine the total number of DML statements available to your code.
Description Limit
The maximum number of asynchronous Apex method executions (batch Apex, future methods, 250,000 or the number of user
Queueable Apex, and scheduled Apex) per a 24-hour period1 licenses in your organization
multiplied by 200, whichever is
greater
Number of synchronous concurrent requests for long-running requests that last longer than 5 seconds 10
for each organization.2
32
Force.com Platform Limits Apex Governor Limits
Description Limit
Maximum number of Apex classes scheduled concurrently 100
Maximum number of Batch Apex jobs in the Apex flex queue that are in Holding status 100
Maximum number of test classes that can be queued per 24-hour period (production organizations The greater of 500 or 10
other than Developer Edition)5 multiplied by the number of test
classes in the organization
Maximum number of test classes that can be queued per 24-hour period (sandbox and Developer The greater of 500 or 20
Edition organizations)5 multiplied by the number of test
classes in the organization
Maximum number of query cursors open concurrently per user for the Batch Apex start method 15
Maximum number of query cursors open concurrently per user for the Batch Apex execute and 5
finish methods
1
For Batch Apex, method executions include executions of the start, execute, and finish methods. This is an organization-wide
limit and is shared with all asynchronous Apex: Batch Apex, Queueable Apex, scheduled Apex, and future methods. The licenses that
count toward this limit are full Salesforce user licenses or Force.com App Subscription user licenses. Chatter Free, Chatter customer users,
Customer Portal User, and partner portal User licenses aren’t included.
2
If additional requests are made while the 10 long-running requests are still running, they’re denied.
3
When batch jobs are submitted, they’re held in the flex queue before the system queues them for processing.
4
Batch jobs that haven’t started yet remain in the queue until they’re started. Note that this limit doesn’t cause any batch job to fail and
execute methods of batch Apex jobs still run in parallel if more than one job is running.
5
This limit applies to tests running asynchronously. This includes tests started through the Salesforce user interface including the
Developer Console or by inserting ApexTestQueueItem objects using SOAP API.
6
For example, if 50 cursors are open and a client application still logged in as the same user attempts to open a new one, the oldest of
the 50 cursors is released. Cursor limits for different Force.com features are tracked separately. For example, you can have 50 Apex query
cursors, 15 cursors for the Batch Apex start method, 5 cursors for the Batch Apex execute and finish methods each, and 5
Visualforce cursors open at the same time.
Maximum size of callout request or response (HTTP request or Web services call)1 6 MB for synchronous Apex or
12 MB for asynchronous Apex
33
Force.com Platform Limits Apex Governor Limits
Description Limit
Maximum SOQL query run time before the transaction can be canceled by Salesforce 120 seconds
Maximum number of class and trigger code units in a deployment of Apex 5,000
Maximum number of records returned for a Batch Apex query in Database.QueryLocator 50 million
1
The HTTP request and response sizes count towards the total heap size.
1
This limit does not apply to certified managed packages installed from AppExchange (that is, an app that has been marked AppExchange
Certified). The code in those types of packages belong to a namespace unique from the code in your organization. For more information
on AppExchange Certified packages, see the Force.com AppExchange online help. This limit also does not apply to any code included
in a class defined with the @isTest annotation.
2
Large methods that exceed the allowed limit cause an exception to be thrown during the execution of your code.
34
Force.com Platform Limits API Limits
Data.com Clean
If you use the Data.com Clean product and its automated jobs, and you have set up Apex triggers with SOQL queries to run when
account, contact, or lead records, the queries may interfere with Clean jobs for those objects. Your Apex triggers (combined) should
not exceed 200 SOQL queries per batch. If they do, your Clean job for that object will fail. In addition, if your triggers call future
methods, they will be subject to a limit of 10 future calls per batch.
Mobile applications developed by your organization for internal employee usage 35,000 notifications per app per
day
Mobile applications installed from the AppExchange 5,000 notifications per app per
day
Only deliverable notifications count toward this limit. For example, consider the scenario where a notification is sent to 1,000 employees
in your company, but 100 employees haven’t installed the mobile application yet. Only the notifications sent to the 900 employees who
have installed the mobile application count toward this limit.
Each test push notification that is generated through the Test Push Notification page is limited to a single recipient. Test push notifications
count toward an application’s daily push notification limit.
API Limits
Available in: Enterprise, Performance, Unlimited, Developer, and Database.com Editions
The following are API limits for concurrent and total API requests, bulk API operations, API cursors, and limits of some selected APIs.
Trial organizations 5
35
Force.com Platform Limits API Requests Limits
Sandbox 25
36
Force.com Platform Limits Chatter REST API Limits
You can find information for API requests in the API Usage box on the system overview page.
Limits are enforced against the aggregate of all API calls made by the organization in a 24 hour period; limits are not on a per-user basis.
When an organization exceeds a limit, all users in the organization may be temporarily blocked from making additional calls. Calls will
be blocked until usage for the preceding 24 hours drops below the limit.
In the Salesforce application, administrators can view how many API requests have been issued in the last 24 hours on the Company
Information page. Administrators can also view a more detailed report of API usage over the last seven days by navigating to the Reports
tab, selecting the Administrative Reports folder, and clicking the API Usage Last 7 days report.
Any action that sends a call to the API counts toward usage limits, except the following:
• Outbound messages
• Apex callouts
You can configure your organization so that email is sent to a designated user when the number of API requests has exceeded a specified
percentage of the limit. You can perform this configuration in from Setup by clicking Monitoring > API Usage Notifications.
Note: Stated limits aren't a promise that the specified resource is available at its limit in all circumstances. For example, load,
performance and other system issues might prevent some limits from being reached. The stated limit may change without notice.
Applications should make efficient use of available requests and gracefully handle the 503 error code.
Batch lifespan Batches and jobs that are older than seven days are removed from the queue regardless
of job status. The seven days are measured from the youngest batch associated with a job,
or the age of the job if there are no batches. You can't create new batches associated with
a job that is more than 24 hours old.
Batch size • Batches for data loads can consist of a single CSV or XML file that can be no larger than
10 MB.
37
Force.com Platform Limits API Query Cursor Limits
Batch processing time There is a five-minute limit for processing 100 records. Also, if it takes longer than 10 minutes
to process a batch, the Bulk API places the remainder of the batch back in the queue for
later processing. If the Bulk API continues to exceed the 10-minute limit on subsequent
attempts, the batch is placed back in the queue and reprocessed up to 10 times before the
batch is permanently marked as failed.
Binary content • The length of any file name can't exceed 512 bytes.
• A zip file can't exceed 10 MB.
• The total size of the unzipped content can't exceed 20 MB.
• A maximum of 1,000 files can be contained in a zip file. Directories don't count toward
this total.
Bulk query number of attempts to query 15 attempts at 10 minutes each to process the batch. There is also a two minute limit on
the time to process the query. If more than 15 attempts are made for the query, an error
message of “Tried more than fifteen times” is returned. If the query takes more than two
minutes to process, a QUERY_TIMEOUT error is returned.
Bulk query number of retrieved files 15 files. If the query needs to return more than 15 files, the query should be filtered to return
less data. Bulk batch sizes are not used for bulk queries.
Job open time The maximum time that a job can remain open is 24 hours. The Bulk API doesn't support
clients that, for example, post one batch every hour for many hours.
38
Force.com Platform Limits SOAP API Call Limits
create() Maximum number Your client application can add up to 200 records in a Available in: Enterprise,
of records created single create() call. If a create request exceeds Performance, Unlimited,
200 objects, then the entire operation fails. Developer, and
Database.com Editions
describeSObjects() Maximum number The describeSObjects() call is limited to a
of objects returned maximum of 100 objects returned.
emptyRecycleBin() Maximum number Your organization can have up to 5,000 records per
of records in the license in the Recycle Bin at any one time. For example,
Recycle Bin if your organization has five user licenses, 25,000
records can be stored in the Recycle Bin. If your
organization reaches its Recycle Bin limit, Salesforce
automatically removes the oldest records, as long as
they have been in the recycle bin for at least two hours.
getDeleted() Limits for returned • If your getDeleted() call returns more than
records 600,000 records and the user is a system
administrator, an exception EXCEEDED_ID_LIMIT
is returned.
• If your getDeleted() call returns more than
20,000 records and the user is not a system
administrator, an exception
OPERATION_TOO_LARGE is returned. Note that
this error is returned when more than 20,000
records across the organization have been deleted,
not just the records viewable by the user.
login() Login request size The login request size is limited to 10 KB or less.
limit
login() Maximum calls per There is a limit of 3600 calls to login() per user
user per hour per hour. Exceeding this limit will result in a “Login
Rate Exceeded” error.
update() Maximum number Your client application can change up to 200 records
of records updated in a single update() call. If an update request
exceeds 200 records, then the entire operation fails.
39
Force.com Platform Limits Streaming API Limits
Maximum number of concurrent clients (subscribers) across all topics 2000 1000 20
Maximum number of events per day (24–hour period) 1,000,000 200,000 50,000
(10,000 for
free
organizations)
Socket timeout during connection (CometD session) 110 seconds 110 seconds 110 seconds
Maximum length of the SOQL query in the Query field of a PushTopic record 1300 1300 1300
characters characters characters
40
Force.com Platform Limits Email Limits
The limits on maximum number of clients and maximum number of concurrent clients for generic streaming are the same limits used
for PushTopic streaming.
Maximum number of concurrent clients (subscribers) across all generic streaming 2000 1000 20
channels
Email Limits
Using the API or Apex, you can send single emails to a maximum of 1,000 external email addresses per day based on Greenwich Mean
Time (GMT). Single emails sent using the Salesforce application don't count toward this limit. There’s no limit on sending individual
emails to contacts, leads, person accounts, and users in your organization directly from account, contact, lead, opportunity, case, campaign,
or custom object pages.
When sending single emails, keep in mind:
• You can send 100 emails per SingleEmailMessage.
• If you use SingleEmailMessage to email your organization’s internal users, specifying the user’s ID in setTargetObjectId
means the email doesn’t count toward the daily limit. However, specifying internal users’ email addresses in setToAddresses
means the email does count toward the limit.
You can send mass email to a maximum of 1,000 external email addresses per day per organization based on Greenwich Mean Time
(GMT). The maximum number of external addresses you can include in each mass email depends on your edition:
41
Force.com Platform Limits Metadata Limits
• You can send an unlimited amount of email to your organization’s internal users, which includes portal users.
• In Developer Edition organizations and organizations evaluating Salesforce during a trial period, your organization can send
mass email to no more than 10 external email addresses per day. This lower limit does not apply if your organization was
created before the Winter '12 release and already had mass email enabled with a higher limit. Additionally, your organization
can send single emails to a maximum of 15 email addresses per day.
Metadata Limits
Available in: Enterprise, Performance, Unlimited, Developer, and Database.com Editions
The following are limits for deploying and retrieving metadata. These limits apply to the Force.com IDE, the Force.com Migration Tool,
and the Metadata API.
Change sets Inbound and outbound change sets can have up to 10,000 files of metadata.
SOSL statements Maximum length of SOSL The SOSL statement character limit is tied to the SOQL statement character
statements limit defined for your organization. By default, SOQL and SOSL queries
cannot exceed 20,000 characters.
SOSL search query strings Maximum length of If the SearchQuery string is longer than 10,000 characters, no result
SearchQuery string rows are returned. If SearchQuery is longer than 4,000 characters,
any logical operators are removed. For example, the AND operator in a
42
Force.com Platform Limits SOQL and SOSL Limits
SOSL query results Maximum number of rows 2,000 results total (API version 28.0 and later), unless you specify custom
returned limits in the query. Previous API versions return 200 results.
Relationship queries Relationship query limits • No more than 35 child-to-parent relationships can be specified in a
query. A custom object allows up to 25 relationships, so you can
reference all the child-to-parent relationships for a custom object in
one query.
• No more than 20 parent-to-child relationships can be specified in a
query.
• In each specified relationship, no more than five levels can be specified
in a child-to-parent relationship. For example,
Contact.Account.Owner.FirstName (three levels).
• In each specified relationship, only one level of parent-to-child
relationship can be specified in a query. For example, if the FROM
clause specifies Account, the SELECT clause can specify only the
Contact or other objects at that level. It could not specify a child object
of Contact.
FOR VIEW and FOR Maximum RecentlyViewed The RecentlyViewed object is updated every time the logged-in user
REFERENCE records allowed views or references a record. It is also updated when records are retrieved
using the FOR VIEW or FOR REFERENCE clause in a SOQL query.
To ensure that the most recent data is available, RecentlyViewed data is
periodically truncated down to 200 records per object.
OFFSET clause Maximum number of rows The maximum offset is 2,000 rows. Requesting an offset greater than
skipped by OFFSET 2,000 will result in a NUMBER_OUTSIDE_VALID_RANGE error.
The following are SOQL limitations and tips that are specific to some Salesforce objects.
Object Description
ContentDocumentLink A SOQL query must filter on one of Id, ContentDocumentId, or LinkedEntityId.
External objects • A subquery that involves external objects can fetch up to 1,000 rows of data.
• Each SOQL query can have up to 4 joins across external objects and other types of objects.
Each join requires a separate round trip to the external server when executing the query.
Expect longer response times for each join in a query.
• External objects don’t support the following in combination with the ORDER BY clause.
– Relationship queries
– NULLS FIRST
– NULLS LAST
43
Force.com Platform Limits SOQL and SOSL Limits
Object Description
• External objects don’t support the following aggregate functions.
– AVG() function
– HAVING clause
– GROUP BY clause
– MAX() function
– MIN() function
• The COUNT() aggregate function is supported on external objects whose external data
sources support the $inlinecount system query option. Specifically, the response
from the external system must include the total row count that’s determined after any
$filter system query options are applied.
• External objects also don’t support the following.
– EXCLUDES operator
– FOR VIEW clause
– FOR REFERENCE clause
– INCLUDES operator
– LIKE operator
– toLabel() method
– TYPEOF expression
– WITH clause
NewsFeed • No SOQL limit if logged-in user has “View All Data” permission. If not, specify a LIMIT clause
of 1,000 records or fewer.
• SOQL ORDER BY on fields using relationships is not available. Use ORDER BY on fields on
the root object in the SOQL query.
KnowledgeArticleVersion • Always filter on a single value of PublishStatus unless the query filters on one or
more primary key IDs. To support security, only users with the “Manage Articles” permission
see articles whose PublishStatus value is Draft.
• Archived article versions are stored in the articletype_kav object. To query archived article
versions, specify the article Id and set sLatestVersion='0'.
• Always filter on a single value of Language. However, in SOQL, you can filter on more
than one Language if there is a filter on Id or KnowledgeArticleId.
RecentlyViewed The RecentlyViewed object is updated every time the logged-in user views or references a
record. It is also updated when records are retrieved using the FOR VIEW or FOR
REFERENCE clause in a SOQL query. To ensure that the most recent data is available,
RecentlyViewed data is periodically truncated down to 200 records per object.
TopicAssignment No SOQL limit if logged-in user has “View All Data” permission. If not, do one of the following:
• Specify a LIMIT clause of 1,100 records or fewer.
• Filter on Id or Entity when using a WHERE clause with "=".
44
Force.com Platform Limits Visualforce Limits
Object Description
UserRecordAccess • Always use the query formats specified in the SOAP API Developer's Guide.
• May include an ORDER BY clause. You must ORDER BY HasAccess if you SELECT
HasAccess, and ORDER BY MaxAccessLevel if you SELECT
MaxAccessLevel.
• Maximum number of records that can be queried is 200.
UserProfileFeed • No SOQL limit if logged-in user has “View All Data” permission. If not, specify a LIMIT clause
of 1,000 records or fewer.
• SOQL ORDER BY on fields using relationships is not available. Use ORDER BY on fields on
the root object in the SOQL query.
Also, a SOQL query must include WITH UserId = {userId].
Visualforce Limits
Available in: Contact Manager, Group, Professional, Enterprise, Performance, Unlimited, and Developer Editions
Limit Value
Maximum response size for a Visualforce page Less than 15 MB
Maximum size of HTML response before rendering, when Visualforce page is rendered as PDF Less than 15 MB
Maximum total size of all images included in a Visualforce page rendered as a PDF 30 MB
Default timeout for a JavaScript remoting call 30000 milliseconds (30 seconds)
Maximum timeout for a JavaScript remoting call 120000 milliseconds (120 seconds)
Maximum number of rows retrieved by queries for a single Visualforce page request 50,000
45
Force.com Platform Limits Visualforce Limits
Limit Value
Maximum number of rows retrieved by queries for a single Visualforce page request in read-only 1 million
mode
Maximum number of collection items that can be iterated in an iteration component such as 1,000
<apex:pageBlockTable> and <apex:repeat>
Maximum number of collection items that can be iterated in an iteration component such as 10,000
<apex:pageBlockTable> and <apex:repeat> in read-only mode
Maximum number of field sets that can be displayed on a single Visualforce page. 50
46
INDEX
limits 37
C Limits
Chatter REST API limits 37
expansion pack 9
unlimited apps pack 9
E
External Object Limits 24 O
OData Limits 24
L
Lightning Connect Limits 24
47