Salesforce Limits Quick Reference Guide
Salesforce Limits Quick Reference Guide
Table of Contents
Salesforce Limits Quick Reference Guide Overview............................................................................................................................3
i
Table of Contents
ii
Salesforce Limits Quick Reference Guide Overview
3
Salesforce Limits Quick Reference Guide Overview
4
Chapter 1
Salesforce Application Limits
5
Salesforce Application Limits Salesforce Features and Editions Limits Table
6
Salesforce Application Limits Salesforce Features and Editions Limits Table
Custom Fields 5 per object 25 per 100 per 100 per 500 per 800 per 500 per
object object object object object object
(Additional restrictions
apply for activities, long
text area fields,
relationship fields, and
roll-up summary fields.
For more information, see
Additional Custom Field
Limits.)
7
Salesforce Application Limits Salesforce Features and Editions Limits Table
8
Salesforce Application Limits Salesforce Features and Editions Limits Table
9
Salesforce Application Limits Salesforce Features and Editions Limits Table
10
Salesforce Application Limits Salesforce Features and Editions Limits Table
11
Salesforce Application Limits Salesforce Features and Editions Limits Table
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 maximum size of email messages for Email Services varies depending on language and character set.
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 containing information about the case or lead. When your organization reaches the 24–hour limit,
salesforce.com 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.com Customer Support to
change your organization's pending request limit.
12
Salesforce Application Limits Analytics Limits
Analytics Limits
Note: Additional dynamic dashboards, scheduled reports, scheduled dashboards, and scheduled analytic snapshots
may be available for purchase. Contact your salesforce.com representative for information.
Analytic Snapshots N/A N/A N/A 200 with a 200 with a 200 with a 200 with a
maximum of maximum of maximum of maximum of
one per hour one per hour two per hour one per hour
during during
off-peak off-peak
hours only1 hours only1
(Limited to (Limited to
one one
preferred preferred
start time start time
per day, per day,
13
Salesforce Application Limits Analytics Limits
1
Off-peak hours are between 6pm and 3am local time.
The following analytics limits apply to all supported editions.
Report Limits
• The report builder preview shows a maximum of 20 rows for summary and matrix reports, and 50 rows for tabular.
• You can't have more than 250 groups or 4,000 values in a chart. If you see an error message saying that your chart
has too many groups or values to plot, adjust the report filters to reduce the number. In combination charts, all groups
and values count against the total.
• Reports display a maximum of 2,000 rows. To view all the rows, export the report to Excel or use the printable view
for tabular and summary reports.
◊ Summary and matrix reports display the first 2,000 groupings when Show Details is disabled.
◊ Matrix reports display a maximum of 400,000 summarized values.
◊ Matrix reports display a maximum of 2,000 groupings in the vertical axis when Show Details is disabled. If there
are more than 400,000 summarized values, rows are removed until the 2,000 groupings limit is met, then columns
are removed until the number of summarized values moves below 400,000.
Dashboard Limits
• A custom report type can contain up to 60 object references. For example, if you select the maximum limit of four
object relationships for a report type, then you could select fields via lookup from an additional 56 objects. However,
users will receive an error message if they run a report from a custom report type and the report contains columns
from more than 20 different objects.
• You can add up to 1000 fields to each custom report type.
• The maximum number of rows you can insert into a custom object is 2,000.
• The maximum number of runs you can store is 200.
• The maximum number of source report columns you can map to target fields is 100.
14
Salesforce Application Limits Campaign Limits
Campaign Limits
Campaign Hierarchy
A hierarchy can contain a maximum of five levels. Each campaign can have only one parent campaign but an unlimited
number of sibling campaigns.
Chatter Limits
Available in: Group, Professional, Enterprise, Unlimited, Contact Manager, and Developer Editions
15
Salesforce Application Limits Additional Custom Field Limits
Feature Limit
People and records you can follow 500
Groups you can join 100
Groups in your organization 10,000
Mentions in a single post or comment 25
Favorites 50
• The length of time posts, comments, and tracked field changes are stored on the Salesforce servers
• The number of posts, comments, and tracked field changes available in the Chatter feed
• The number of email notifications that can be sent per organization per hour
These limits are subject to change at any time. Contact salesforce.com 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
PPT .ppt, .pptx, .pptm 25 MB
RTF .rtf 5 MB
Text .c, .cpp, .css, .csv, .ini, .java, 5 MB
.log, .sql, .txt
16
Salesforce Application Limits Salesforce Knowledge 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.
Relationship No additional 25 25 25 25 25 25
Fields limit
Roll-up No additional 10 10 10 10 10 10
Summary limit
Fields
17
Salesforce Application Limits Picklist Limits
Active data category N/A N/A N/A N/A For Enterprise, Developer, and Unlimited
groups Editions you can have up to three active
data category groups.
Categories per data N/A N/A N/A N/A For Enterprise, Developer, and Unlimited
category group Editions you can have up to 100 data
categories per data category group.
Data category group N/A N/A N/A N/A For Enterprise, Developer, and Unlimited
hierarchy Editions you can have up to five levels in
your data category group hierarchy.
Data categories N/A N/A N/A N/A For Enterprise, Developer, and Unlimited
from a data category Editions you can assign up to eight data
group assigned to an categories from one category group to an
article article.
Picklist Limits
The maximum number of entries you can have in a standard or custom 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.
18
Salesforce Application Limits Sites Limits
Sites Limits
Edition Maximum Number Bandwidth Limit (per rolling Service Request Time (per Maximum Page
of Sites 24-hour period per site) rolling 24-hour period per Views
site)
Developer Edition 1 500 MB 10 minutes N/A
Free Edition 1 10 GB 360 minutes 250,000
Enterprise Edition 25 1 GB for sandbox 30 minutes for sandbox 500,000
40 GB for production 60 hours for production
19
Salesforce Application Limits Workflow and Approvals Limits
Approval Request N/A N/A N/A N/A Approval request comments are limited to
Comments: 4,000 characters. In Chinese, Japanese, or
Maximum Number Korean, the limit is 1,333 characters.
of Characters
Workflow Rules N/A N/A N/A N/A For Enterprise, Developer, and Unlimited
and Approval Editions, each workflow rule and approval
Processes process can have:
• 10 time triggers
• 40 immediate actions
• 40 time-dependent actions per time
trigger
• 10 email alerts
• 10 tasks
• 10 field updates
• 10 outbound messages
20
Salesforce Application Limits Data Related Limits
21
Salesforce Application Limits Import Limits
Note: These values are offset by your time zone. For example, in the Pacific time zone, the earliest valid date is
1699-12-31T16:00:00, or 4:00 PM on December 31, 1699.
Import Limits
This table lists the import limits by type of record, as well as the permissions required for the import and the corresponding
help topic in the Salesforce online help.
Person accounts owned by you 50,000 at a time All users What Is Imported for Person
Accounts?
Person accounts owned by 50,000 at a time Administrators; What Is Imported for Person
different users Accounts?
Users with the “Import Person
Accounts” permission
Campaign members 50,000 for importing leads as Administrators; What is Imported for
new campaign members and Campaign Members?
Marketing users (or users with
updating the status of existing
the “Import Leads” permission
campaign members.
and the “Edit” permission on
campaigns) can import new
22
Salesforce Application Limits Rules Limits
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.
Rules Limits
Different types of rules can have restrictions, depending on your Salesforce edition. The following table shows the restrictions
with respect to edition.
23
Salesforce Application Limits Search Limits
Total Rules Not Available Not Available Not Available 300 per object 300 per object 300 per object 300 per object
Allowed
1,000 per 1,000 per 1,000 per 1,000 per
(Limits apply organization organization organization organization
to 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, and Unlimited
Auto-response, Editions, each assignment, auto-response, and escalation rule
and can have:
Escalation • 3,000 rule entries
Rules • 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
Search Limits
The following are the file extensions and maximum file sizes supported for search.
.xhtml
24
Salesforce Application Limits Search Limits
.pps
.ppt
.pptx
.cpp
.css
.csv
.ini
.java
.log
.sql
.txt
Word 25,600 KB
.doc
.docx
.docm
.dot
.xlsx
.xlt
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.
25
Salesforce Application Limits Storage Capacity Limits
Storage Capacity
Each Edition includes a minimum amount of data storage and file storage. Professional, Enterprise, and Unlimited Editions
receive a per-user storage amount multiplied by the number of users in the organization if the result is greater than the minimum
storage amount. Using data storage as an example, an Enterprise Edition organization with 600 users would receive 12,000
MB (12 GB) of data storage, because 20 MB per user multiplied by 600 users is 12,000 MB. A smaller organization, for
example a Professional Edition organization with 20 users, would receive 1 GB of data storage because 20 MB per user
multiplied by 20 users is only 400 MB, which is less than the 1 GB minimum allotted to all Professional Edition organizations.
The values in the Storage Allocation Per User License column below apply to Salesforce and Salesforce Platform user licenses.
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.
Salesforce Edition Data Storage Minimum per File Storage Minimum per Storage Allocation Per User
Organization Organization License
Personal 20 MB (approximately 10,000 20 MB N/A
records)
Contact Manager 1 GB 11 GB 20 MB of data storage and
612 MB of file storage
Group 1 GB 11 GB 20 MB of data storage and
612 MB of file storage
Professional 1 GB 11 GB 20 MB of data storage and
612 MB of file storage
Enterprise 1 GB, plus 5 MB for each 11 GB 20 MB of data storage and
Gold Partner license 612 MB of file storage
Unlimited 1 GB, plus 5 MB for each 11 GB 120 MB of data storage and
Gold Partner license 612 MB of file storage
Developer 5 MB 20 MB N/A
If your organization uses custom user licenses, contact salesforce.com to determine if these licenses provide additional storage.
For a description of user licenses, see “Viewing User License Types” in the Salesforce online help.
26
Salesforce Application Limits File Share Limits
Feature Files Tab and Salesforce CRM Salesforce Documents Tab Attachments
Chatter Content Knowledge Related List
Maximum File 100 MB • 2 GB • 10 KB for • 5 MB • 5 MB for file
Size • 10 MB for articles • 20 KB for a attachments
Google Docs • 5 MB for custom-app logo • 100 MB for feed
• 10 MB for email attachments attachments
attachments • 10 MB for files
• 38 MB when attached to
uploaded via the email
API
• 10 MB when
uploaded via
Visualforce
Sandbox Limits
• You can refresh a full copy sandbox 29 days from its previous refresh or creation. If you delete a full-copy sandbox, you
must wait 29 days to replace it.
• You can refresh a configuration-only sandbox (including developer sandbox) once per day.
• You may order up to a maximum of three full sandboxes.
• You may order up to a maximum of six configuration-only sandboxes.
• Enterprise Edition includes one developer sandbox.
• Unlimited Edition includes one full sandbox with the option to purchase up to three more full sandboxes.
27
Chapter 2
Force.com Platform Limits
Apex Limits
Available in: Unlimited, Developer, Enterprise, and Database.com Editions
Description Limit
Total number of SOQL queries issued1 100
Total number of SOQL queries issued for Batch Apex and future methods1 200
Total number of records retrieved by SOQL queries 50,000
Total number of SOSL queries issued 20
Total number of records retrieved by a single SOSL query 200
2
Total number of DML statements issued 150
Total number of records processed as a result of DML statements, Approval.process, or 10,000
database.emptyRecycleBin
28
Force.com Platform Limits Apex Governor Limits
Description Limit
For loop list batch size 200
Total number of callouts (HTTP requests or Web services calls) in a request 10
Maximum timeout for all callouts (HTTP requests or Web services calls) in a request 120 seconds
Default timeout of callouts (HTTP requests or Web services calls) in a request 10 seconds
Total number of methods with the future annotation allowed per Apex invocation5 10
Maximum size of callout request or response (HTTP request or Web services call)6 3 MB
Total number of sendEmail methods allowed 10
Total number of describes allowed7 100
8
Total number of test classes that can be queued per a 24–hour period The greater of 500 or 10
multiplied by the number of
test classes in the organization
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
• undelete and Database.undelete
• update and Database.update
• upsert and Database.upsert
• System.runAs
3
Email services heap size is 18 MB.
4
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.
29
Force.com Platform Limits Apex Governor Limits
5
Salesforce also imposes a limit on the number of future method invocations: 200 method calls per full Salesforce user
license, Salesforce Platform user license, or Force.com - One App user license, per 24 hours. This is an organization-wide
limit. Chatter Only, Chatter customer users, Customer Portal User, and partner portal User licenses aren’t included in this
limit calculation. For example, suppose your organization has three full Salesforce licenses, two Salesforce Platform licenses,
and 100 Customer Portal User licenses. Your entire organization is limited to only 1,000 method calls every 24 hours ((3+2)
* 200, not 105.)
6
The HTTP request and response sizes are calculated as part of the total heap size. Therefore, don't exceed the 3 MB total
heap size.
7
Describes include the following methods and objects.
• ChildRelationship objects
• RecordTypeInfo objects
• PicklistEntry objects
• fields calls
8
This limit applies when you start tests asynchronously by selecting test classes for execution through the Apex Test Execution
page or by inserting ApexTestQueueItem objects using the Web Services API.
In addition to the execution governor limits, Apex has the following limits.
• There is a limit on the method size. Large methods that exceed the allowed limit cause an exception to be thrown during
the execution of your code. Like in Java, the method size limit in Apex is 65,535 bytecode instructions in compiled form.
• If a SOQL query runs more than 120 seconds, the request can be canceled by Salesforce.
• Each Apex request is limited to 10 minutes of execution.
• A callout request to a given URL is limited to a maximum of 20 simultaneous requests.
• The maximum number of records that an event report returns for a user who is not a system administrator is 20,000, for
system administrators, 100,000.
• Each organization is allowed 10 synchronous concurrent events, each not lasting longer than 5 seconds. If additional
requests are made while 10 requests are running, it is denied.
• A user can have up to five query cursors open at a time. For example, if five cursors are open and a client application still
logged in as the same user attempts to open a new one, the oldest of the five cursors is released.
Cursor limits for different Force.com features are tracked separately. For example, you can have five Apex query cursors,
five batch cursors, and five Visualforce cursors open at the same time.
• 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.
30
Force.com Platform Limits Batch Apex Governor Limits
• Any deployment of Apex is limited to 5,000 code units of classes and triggers.
API Limits
Available in: Enterprise, 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.
31
Force.com Platform Limits API Requests Limits
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 at Your Name > Setup > Company Profile > Company Information. 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.
Note: Limits are automatically enforced for all editions.
32
Force.com Platform Limits Bulk API Limits
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. For more information, see “About API Usage Notifications” in the Salesforce online help.
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.
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.
33
Force.com Platform Limits API Query Cursor Limits
login() Login request size limit The login request size is limited to 10 KB or less.
merge() Merge request limits • Up to 200 merge requests can be made in a single SOAP call.
• Up to three records can be merged in a single request, including
the master record. This is the same limit as the Salesforce user
interface. If you have more than three records to merge, use the
same master record in each request to avoid errors.
• External ID fields cannot be used with merge().
update() Maximum number of Your client application can change up to 200 records in a single
records updated update() call. If an update request exceeds 200 records, then the
entire operation fails.
query() and Batch size limits By default, the number of rows returned in the query result object
queryMore() (batch size) returned in a query() or queryMore() call is set to
500. WSC clients can set the batch size by
34
Force.com Platform Limits Email Limits
Email Limits
The following are limits for the number of external email addresses allowed in single and mass emails sent using the API.
Using the API, 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 application don't count towards this limit.
You can send mass email to a total 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 the Edition of Salesforce
you are using:
Note: The mass email limits don't take unique addresses into account. For example, if you have
johndoe@example.com in your mass email 10 times, that counts as 10 against the limit.
Note: 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.
You can send an unlimited amount of email to your internal users. These limits also apply to emails sent from the API and
Apex.
Mass email is not available in: Personal, Contact Manager, and Group Editions.
Note: You can email contacts, leads, person accounts, and users in your organization directly from account, contact,
lead, opportunity, case, campaign, or custom object pages. There is no limit on the number of these emails sent
individually.
35
Force.com Platform Limits Metadata Limits
Metadata Limits
Available in: Enterprise, 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.
Packages Limits
Note that Aloha Apps don't count towards the total number of apps, objects, and tabs in an organization, although the edition
limits still exist for the package as a whole. For example, if your package contains 50 custom objects, it can be installed in a
GE or PE edition, and does not count towards the number of custom objects in those organizations. However, if your managed
package contains 51 custom objects, it exceeds the edition limits and won't install.
36
Force.com Platform Limits SOQL and SOSL Limits
SOQL statements Maximum length of SOQL By default, SOQL statements cannot exceed 10,000 characters in
statements length.
SOSL statements Maximum length of SOSL SOSL statements cannot exceed 10,000 characters.
statements
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.
The query cannot filter on more than one of the three, and cannot filter on other fields
in addition to one of the three fields.
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.
• 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.
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.
37
Force.com Platform Limits Visualforce Limits
Visualforce Limits
Available in: Contact Manager, Group, Professional, Enterprise, Unlimited, and Developer Editions
Limit Value
Maximum view state size in a Visualforce page 135KB
Maximum size of a Visualforce email template 1 MB
Maximum response size of PDF when Visualforce page is rendered as PDF Less than 15 MB
Maximum response size of a JavaScript remote call 15 MB
Maximum number of rows retrieved by queries for a single Visualforce page request 50,000
Maximum number of rows retrieved by queries for a single Visualforce page request in 1 million
read-only mode
Maximum number of collection items that can be iterated in an iteration component 1,000
such as <apex:pageBlockTable> and <apex:repeat>
Maximum number of collection items that can be iterated in an iteration component 10,000
such as <apex:pageBlockTable> and <apex:repeat> in read-only mode
38