salesforce app limits cheatsheet pdf
DESCRIPTION
app limits cheet pdfTRANSCRIPT
Version 27.0: Spring ’13
Salesforce Limits Quick Reference Guide
Last updated: February 2, 2013
© Copyright 2000–2013 salesforce.com, inc. All rights reserved. Salesforce.com is a registered trademark of salesforce.com, inc., as are othernames and marks. Other marks appearing herein may be trademarks of their respective owners.
Table of Contents
Salesforce Limits Quick Reference Guide Overview............................................................................................................................1
Chapter 1: Salesforce Application Limits...............................................................................................3Salesforce Features and Editions Limits...................................................................................................................................3
Salesforce Features and Editions LimitsTable...............................................................................................................3Analytics Limits..........................................................................................................................................................10Campaign Limits.........................................................................................................................................................11Chatter Limits.............................................................................................................................................................12Custom Field Limits...................................................................................................................................................14Email Limits................................................................................................................................................................15Salesforce Knowledge Limits.......................................................................................................................................16Picklist Limits.............................................................................................................................................................17Sites Limits..................................................................................................................................................................18Workflow and Approval Limits..................................................................................................................................19
Data Related Limits................................................................................................................................................................20Dates: Valid Range for Date Fields.............................................................................................................................20Import Limits..............................................................................................................................................................21Rules Limits................................................................................................................................................................22Search Limits...............................................................................................................................................................23Storage Capacity Limits..............................................................................................................................................24
File Related Limits..................................................................................................................................................................25File Size Limits............................................................................................................................................................25File Share Limits.........................................................................................................................................................25
Sandbox Limits.......................................................................................................................................................................26
Chapter 2: Force.com Platform Limits................................................................................................27Apex Limits.............................................................................................................................................................................27
Apex Governor Limits.................................................................................................................................................27Batch Apex Governor Limits......................................................................................................................................30
API Limits..............................................................................................................................................................................31API Requests Limits...................................................................................................................................................31Bulk API Limits..........................................................................................................................................................32API Query Cursor Limits............................................................................................................................................33Some API Call Limits.................................................................................................................................................33Streaming API Limits.................................................................................................................................................34
Email Limits...........................................................................................................................................................................35Metadata Limits......................................................................................................................................................................36SOQL and SOSL Limits........................................................................................................................................................36Visualforce Limits...................................................................................................................................................................38
i
Table of Contents
ii
Table of Contents
Salesforce Limits Quick Reference Guide Overview
This guide provides commonly referenced limits for Salesforce.
This guide may not cover all limits or may contain limits that don't apply to your organization. Stated limits aren't a promisethat the specified resource is available at its limit in all circumstances. For example, load, performance and other system issuesmight prevent some limits from being reached. In addition, this guide doesn't include limits of:
• User interface elements in the Salesforce application
• Field lengths of Salesforce objects
• Desktop integration clients
1
Salesforce Limits Quick Reference Guide Overview
2
Salesforce Limits Quick Reference Guide Overview
Chapter 1
Salesforce Application Limits
This chapter provides limits for Salesforce.
Salesforce Features and Editions LimitsThe following are limits for Salesforce features by edition.
Salesforce Features and Editions LimitsTable
This table summarizes the limits for some features in the Salesforce application by edition. Footnotes appear beneath thistable. For features not included in this table, check the later sections in this guide for limit information.
DeveloperEdition
UnlimitedEdition
EnterpriseEdition
ProfessionalEdition
GroupEdition
ContactManager
PersonalEdition
Feature
757575N/AN/AN/AN/AAction Plans: MaximumNumber of Tasks
5 per object5 per object5 per object5 per object5 per object5 per object5 per objectActive Lookup Filters
100 perobject
500 perobject
100 perobject
20 per object20 perobject
20 perobject
N/AActive Validation Rules
5 MB forfile
5 MB forfile
5 MB forfile
5 MB forfile
5 MB forfile
5 MB forfile
N/AAttachments: MaximumSize of Attachment in the
attachments.attachments.attachments.attachments.attachments.attachments.Notes & AttachmentsRelated List1 2 GB for
feedattachments.
2 GB forfeedattachments.
2 GB forfeedattachments.
2 GB forfeedattachments.
2 GB forfeedattachments.
2 GB forfeedattachments.
100categories in
100categories in
100categories in
N/AN/AN/AN/ACategories: MaximumDefault Number of
a dataa dataa dataCategories and HierarchyLevels category
group and 5categorygroup and 5
categorygroup and 5
levels in alevels in alevels in adatadatadatacategorycategorycategory
3
DeveloperEdition
UnlimitedEdition
EnterpriseEdition
ProfessionalEdition
GroupEdition
ContactManager
PersonalEdition
Feature
grouphierarchy
grouphierarchy
grouphierarchy
5 categorygroups and
5 categorygroups and
5 categorygroups and
N/AN/AN/AN/ACategory Groups:Maximum Default
3 active3 active3 activeNumber of CategoryGroups category
groupscategorygroups
categorygroups
505050N/AN/AN/AN/ACertificates: MaximumNumber of Certificates
1 GB1 GB1 GB1 GB1 GB1 GB1 GBContent Deliveries:Default DeliveryBandwidth per Rolling24-hour Window
20,00020,00020,00020,00020,00020,00020,000Content Deliveries:Default Delivery ViewCounts per Rolling24-hour Window
25 MB25 MB25 MB25 MB25 MB25 MB25 MBContent Deliveries:Maximum File Size forOnline Viewing
For all editions:Content: Maximum FileSize
• 2 GB
• 10 MB for Google Docs
• 38 MB when uploaded via the API
• 10 MB when uploaded via Visualforce
2,0002,0002,0002,0002,0002,0002,000Content: MaximumNumber of Libraries
500,000500,000500,000500,000500,000500,000500,000Content: MaximumNumber of ContentDocuments
2,5005,0005,0005,0005,0005,0005,000Content: MaximumNumber of ContentDocuments and Versionsin a 24–hour Period(Adjustable)
505050505050N/AContent Packs: MaximumNumber of Files
10Unlimited10511N/ACustom Apps
4
Salesforce Features and Editions LimitsTableSalesforce Application Limits
DeveloperEdition
UnlimitedEdition
EnterpriseEdition
ProfessionalEdition
GroupEdition
ContactManager
PersonalEdition
Feature
(The custom appscontained in a managedpackage publicly posted onthe AppExchange don'tcount against the limits foryour Salesforce Edition.)
500 perobject
800 perobject
500 perobject
100 perobject
100 perobject
25 perobject
5 per objectCustom Fields
(Additional restrictionsapply for activities, longtext area fields,relationship fields, androll-up summary fields..)
5,0005,0005,0005,000N/AN/AN/ACustom Labels
1,024characters
1,024characters
1,024characters
1,024characters
1,024characters
1,024characters
1,024characters
Custom Links: MaximumLength of Link Label
3,000 bytes23,000 bytes23,000 bytes23,000 bytes23,000 bytes23,000 bytes23,000 bytes2Custom Links: MaximumLength of Link URL
4002,00020050505N/ACustom Objects
(The custom objectscontained in a managedpackage publicly posted onthe AppExchange don'tcount against the limits foryour Salesforce Edition.)
Note: If you’reapproaching yourlimit for customobjects and needto delete some,you need to harddelete or erasethem.Soft-deletedcustom objectsand their datacount againstyour limits.
232323232323N/ACustom Objects:Maximum Number of
5
Salesforce Features and Editions LimitsTableSalesforce Application Limits
DeveloperEdition
UnlimitedEdition
EnterpriseEdition
ProfessionalEdition
GroupEdition
ContactManager
PersonalEdition
Feature
Master-DetailRelationships
In a many-to-many relationship, a user can’t delete a parent record if more than200 junction object records are associated with it and if the junction object has aroll-up summary field that rolls up to the other parent.
N/ACustom Objects: Deletionof Parent Records in aMany-to-ManyRelationship
The lesser of10 MB or 1
The lesser of10 MB or 1
The lesser of10 MB or 1
N/AThe lesser of10 MB or 1
N/AThe lesser of10 MB or 1
Custom Settings: CachedData Limit
MBMBMBMBMBmultipliedmultipliedmultipliedmultipliedmultipliedby theby theby theby theby thenumber ofnumber ofnumber ofnumber ofnumber offull-featuredfull-featuredfull-featuredfull-featuredfull-featureduser licensesuser licensesuser licensesuser licensesuser licensesin yourorganization
in yourorganization
in yourorganization
in yourorganization
in yourorganization
300300300N/A300N/A300Custom Settings:Maximum Number ofFields Per Custom Setting
N/A100100100N/AN/AN/ADivisions: MaximumNumber of Divisions
20 KB20 KB20 KB20 KB20 KB20 KB20 KBDocuments: MaximumSize of Custom App Logo
5 MB5 MB5 MB5 MB5 MB5 MB5 MBDocuments: MaximumSize of Document toUpload
255characters
255characters
255characters
255characters
255characters
255characters
255characters
Documents: MaximumFile Name Size (IncludingFile Extension Name)
For Enterprise, Developer, andUnlimited Editions, you can have:
N/AN/AN/AN/AEntitlement Processes andMilestones
• 20 Entitlement processes
• 10 Milestones for each entitlementprocess
Contact salesforce.com for informationon increasing the number of entitlementprocesses and milestones.
1,0001,0001,0001,0001,0001,000N/AEvents: MaximumNumber of Invitees and
6
Salesforce Features and Editions LimitsTableSalesforce Application Limits
DeveloperEdition
UnlimitedEdition
EnterpriseEdition
ProfessionalEdition
GroupEdition
ContactManager
PersonalEdition
Feature
Resources forSingle-Occurrence Events
100100100100100100N/AEvents: MaximumNumber of Invitees andResources for RecurringEvents
202020202020N/AField History Tracking:Maximum Number ofStandard or Custom FieldsTracked for Standard orCustom Objects
2 GB2 GB2 GB2 GB2 GB2 GB2 GBFiles: Maximum File Sizein Chatter and on the FilesTab
250250250250250250250250Fiscal Years: MaximumNumber of Custom FiscalYears
3,900characters
3,900characters
3,900characters
3,900characters
3,900characters
3,900characters
3,900characters
Formulas: MaximumNumber of Characters
1,300characters
1,300characters
1,300characters
1,300characters
1,300characters
1,300characters
1,300characters
Formulas: MaximumNumber of DisplayedCharacters After anEvaluation of a FormulaExpression
4,000 bytes4,000 bytes4,000 bytes4,000 bytes4,000 bytes4,000 bytes4,000 bytesFormulas: MaximumFormula Size (in Bytes)When Saved
5,000 bytes5,000 bytes5,000 bytes5,000 bytes5,000 bytes5,000 bytes5,000 bytesFormulas: MaximumFormula Size (in Bytes)When Compiled
10101010101010Formulas: Number ofUnique Relationships PerObject
10 perobject
10 perobject
10 perobject
10 per object10 perobject
10 perobject
10 perobject
Formulas: VLOOKUPFunctions
32 KB32 KB32 KB32 KBN/AN/AN/AIdeas: Maximum Size ofHTML Idea Description
4 KB4 KB4 KB4 KBN/AN/AN/AIdeas: Maximum Size ofHTML Idea Comment
7
Salesforce Features and Editions LimitsTableSalesforce Application Limits
DeveloperEdition
UnlimitedEdition
EnterpriseEdition
ProfessionalEdition
GroupEdition
ContactManager
PersonalEdition
Feature
10,000410,000410,000410,000410,000410,000410,0004Master-DetailRelationship: MaximumNumber of Child Records
100,000100,000100,000100,000100,000100,000100,000Objects: MaximumNumber of DeletingCombined Objects andChild Records
1,0001,0001,000N/AN/AN/AN/APermission sets
N/A1,0001,000N/AN/AN/AN/AQuestion: MaximumNumber of Characters
N/A32,00032,000N/AN/AN/AN/AQuestion: MaximumNumber of Characters(with Chatter AnswersOptimize QuestionFlow enabled)
5 MB5 MB5 MB5 MBN/AN/AN/AQuote PDF: MaximumLogo Size
150 pixels150 pixels150 pixels150 pixelsN/AN/AN/AQuote PDF: MaximumLogo Height
25 timesyour storage
25 timesyour storage
25 timesyour storage
25 timesyour storage
25 timesyour storage
25 timesyour storage
25 timesyour storage
Recycle Bin: MaximumNumber of Records
capacity inMBs
capacity inMBs
capacity inMBs
capacity inMBs
capacity inMBs
capacity inMBs
capacity inMBs
N/A1,0001,000N/AN/AN/AN/AReply : Maximum Numberof Characters
N/A4,0004,000N/AN/AN/AN/AReply (Private): MaximumNumber of Characters(with Chatter AnswersOptimize QuestionFlow enabled)
N/A32,00032,000N/AN/AN/AN/AReplies (Public):Maximum Number ofCharacters (with ChatterAnswers OptimizeQuestion Flow enabled)
For all editions: If your organization has enabled Shared Activities, you can relate as many as 10contacts to non-recurring and non-group tasks, and non-recurring events. You assign one primarycontact; all others are secondary contacts.
Shared Activities
8
Salesforce Features and Editions LimitsTableSalesforce Application Limits
DeveloperEdition
UnlimitedEdition
EnterpriseEdition
ProfessionalEdition
GroupEdition
ContactManager
PersonalEdition
Feature
For Professional, Enterprise, Unlimited, and DeveloperEditions, administrators can create up to 300 sharingrules per object, including up to 50 criteria-based rules.
N/AN/AN/ASharing Rules
A singlestatic
A singlestatic
A singlestatic
A singlestatic
A singlestatic
A singlestatic
N/AStatic Resources
resource canresource canresource canresource canresource canresource canbe up to 5MB in size.
Anorganization
be up to 5MB in size.
Anorganization
be up to 5MB in size.
Anorganization
be up to 5MB in size.
Anorganization
be up to 5MB in size.
Anorganization
be up to 5MB in size.
Anorganization
can have upcan have upcan have upcan have upcan have upcan have upto 250 MBto 250 MBto 250 MBto 250 MBto 250 MBto 250 MBof staticof staticof staticof staticof staticof staticresources,total.
resources,total.
resources,total.
resources,total.
resources,total.
resources,total.
100Unlimited251053N/ATabs
(The custom tabscontained in a managedpackage publicly posted onthe AppExchange don'tcount against the limits foryour Salesforce Edition.)
For all editions, a user is limited to a maximum of:Tags
• 500 unique personal tags
• 5,000 instances of personal tags applied to records
Across all users, your organization can have a maximum of:
• 1,000 unique public tags
• 50,000 instances of public tags applied to records
• 5,000,000 instances of personal and public tags applied to records
151515N/AN/AN/AN/ATerritories: MaximumNumber of AccountAssignment Rules
2
5000Chatter Free
Unlimited
5000Chatter Free
Unlimited
5000Chatter Free
Unlimited
5000Chatter Free
10
5000Chatter Free
5
5000Chatter Free
1Users: Maximum Numberof Users Created
9
Salesforce Features and Editions LimitsTableSalesforce Application Limits
DeveloperEdition
UnlimitedEdition
EnterpriseEdition
ProfessionalEdition
GroupEdition
ContactManager
PersonalEdition
Feature
For Enterprise, Developer, andUnlimited Editions, each flow can haveup to:
N/AN/AN/AN/AVisual Workflow
• 50 versions
• 2000 steps
Each organization can have up to:
• 500 active flows
• 1000 flows total
5,00055,00055,00055,0005N/AN/AN/AWeb-to-Case: MaximumNumber of New CasesGenerated in a 24–hourPeriod
5005500550055005N/AN/AN/AWeb-to-Lead: MaximumNumber of New LeadsGenerated in a 24–hourPeriod
1 You can add an attachment to the Attachments related list of a case, solution, campaign, task, or event, or to the Notes andAttachments related list of an account, contact, lead, opportunity, or custom object. If you don't see the related list on task orevent page layouts, you may need to ask your administrator to add it. All file types are supported, including everything fromMicrosoft® 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 additionallimits for the maximum URL length.3 Each relationship is included in the maximum number of custom fields allowed.4 As a best practice, don't exceed 10,000 child records for a master-detail relationship.5 If your organization exceeds its daily Web-to-Case or Web-to-Lead limit, the default case owner or default lead creatorreceives 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-Leadrequests. The requests are submitted when the limit refreshes. The pending request queue has a limit of 50,000 combinedrequests. If your organization reaches the pending request limit, additional requests are rejected and not queued. Youradministrator receives email notifications for the first five rejected submissions. Contact salesforce.com Customer Support tochange your organization's pending request limit.
Analytics Limits
DeveloperEdition
UnlimitedEdition
EnterpriseEdition
ProfessionalEdition
GroupEdition
ContactManager
PersonalEdition
Feature
20202020202020Field Filters per Report1
10
Analytics LimitsSalesforce Application Limits
DeveloperEdition
UnlimitedEdition
EnterpriseEdition
ProfessionalEdition
GroupEdition
ContactManager
PersonalEdition
Feature
5555555Formulas per Report
One perhour2
Two perhour2
One perhour2
One perhour2
(off-peakhours only3)
(Limited tothree
N/AN/AN/AScheduled Reports
(Emailed reports can be upto 10 MB.) (off-peak
hours only3)
(Limited tothree
preferred preferredstart times, start times,which can'tbe changed)
which can'tbe changed)
Up to threeperorganization
Up to 10 perorganization
Up to fiveperorganization
N/AN/AN/AN/ADynamic Dashboards
N/ATwo perhour2
One perhour2
N/AN/AN/AN/AScheduled DashboardRefreshes
4002,00020050N/AN/AN/ACustom Report Types
(Limits apply to all customreport types regardless ofdevelopment status.)
One perhour2
Two perhour2
One perhour2
One perhour2
(off-peakhours only3)
(Limited toone
N/AN/AN/AAnalytic Snapshots
(off-peakhours only3)
(Limited toone
preferred preferredstart time start timeper day, per day,which can'tbe changed)
which can'tbe 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, Unlimited, and Developer Editions
11
Campaign LimitsSalesforce Application Limits
Adding Contacts to Campaigns
Maximum Number of RecordsRecommended Campaign MemberTool
Contact Source
50,000 per reportAdd Campaign Members from ReportsA report of existing contacts
50,000 per import fileCampaign Update WizardA .csv file of existing contacts
250 per list pageAdding Contacts or Leads from a ListView to a Campaign
A list view of existing contacts
1Adding, Editing, or Cloning IndividualCampaign Members
An individual contact detail page
Adding Leads to Campaigns
Maximum Number of RecordsRecommended Campaign MemberTool
Lead Source
50,000 per reportAdd Campaign Members from ReportsA report of existing leads
50,000 per import fileLead Import WizardA .csv file of new leads
250 per list pageAdding Contacts or Leads from a ListView to a Campaign
A list view of existing leads
1Adding, Editing, or Cloning IndividualCampaign Members
An individual lead detail page
Campaign Influence Time
The maximum campaign influence time frame is 9,999 days.
Campaign Hierarchy
A hierarchy can contain a maximum of five levels. Each campaign can have only one parent campaign but an unlimitednumber of sibling campaigns.
Chatter Limits
LimitFeature
500People and records you can follow
100Groups you can join
Requests to join private groups count toward this limit. Forexample, if you're a member of 90 groups, you can only requestto join 10 more groups.
10,000Groups in your organization
UnlimitedMembers in a Group
12
Chatter LimitsSalesforce Application Limits
LimitFeature
25Mentions in a single post or comment
1,000Characters in single post or comment
10,000Characters in a Chatter message
2 GBFile attachment size
100Times a file can be shared
UnlimitedBookmarks
50Favorites
8 MBProfile photo size
10People you can add to a chat
100People you can add to Chat My Favorites
LimitChatter Plus Feature
UnlimitedChatter Plus licenses in your organization
20 MBData storage per Chatter Plus user
612 MBFile storage per Chatter Plus user
Additionally we reserve the right to enforce limits on:
• The length of time that 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. Currently tracked fields withoutlikes or comments are removed from the feed after 45 days.
• 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.
Chatter Content Search LimitsSearch supports several file types and has limits on file sizes. If a file exceeds the maximum size, the text within the file isn'tsearched, but the file's name, description, type, and owner are.
Maximum File Size for Text Within theFile to be Searchable
File ExtensionsFile Type
5 MB.htm, .html, .xhtmlHTML
25 MB.pdfPDF
25 MB.ppt, .pptx, .pptmPPT
5 MB.rtfRTF
5 MB.c, .cpp, .css, .csv, .ini, .java,.log, .sql, .txt
Text
13
Chatter LimitsSalesforce Application Limits
Maximum File Size for Text Within theFile to be Searchable
File ExtensionsFile Type
25 MB.doc, .docx, .docmWord
5 MB.xmlXML
5 MB.xls, .xlsx, .xlsmXLS
Custom Field Limits
Available in: All Editions
Standard Fields and Page Layouts are not available in Database.com
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 tableshows the maximum limits for each custom field type and edition.
UnlimitedEdition
DeveloperEdition
EnterpriseEdition
ProfessionalEdition
GroupEdition
ContactManager
PersonalEdition
Custom FieldLimits
10010010020No additionallimit
No additionallimit
No additionallimit
Activities
There are no limits to the number of rich text area and long text area fields that an object can contain, althoughyour Edition’s limit for the total number of custom fields allowed on an object, regardless of field type, applies.
Long TextArea Fields
Rich TextArea Fields
Each object can contain a total of 1.6 million characters across long text area and rich text area fields. Thedefault character limit for long text area and rich text area fields is 32,768 characters. A long text area or richtext area field needs to contain at least 256 characters.
The maximum size of an image that can be uploaded in a rich text area field is 1 MB.
252525252525No additionallimit
RelationshipFields
101010101010No additionallimit
Roll-upSummaryFields
14
Custom Field LimitsSalesforce Application Limits
Email Limits
DeveloperEdition
UnlimitedEdition
EnterpriseEdition
ProfessionalEdition
GroupEdition
ContactManager
PersonalEdition
Feature
384 KB fortext emailtemplates
Email Templates:Maximum Size
• 384 KB for text, HTML, and custom HTML templates
• 1 MB for Visualforce templates
For all editions:Email to Salesforce• Email body truncation size: 32 KB
• Maximum number of email activities created for each email received: 50
• Maximum size of a single file attachment: 5 MB
• Total maximum size of file attachments: 10 MB
Number ofuser licenses
Number ofuser licenses
Number ofuser licenses
Number ofuser licenses
N/AN/AN/AEmail Services: MaximumNumber of EmailMessages Processed multiplied
by 1,000, upmultipliedby 1,000, up
multipliedby 1,000, up
multipliedby 1,000, up
to a dailyto a dailyto a dailyto a dailymaximum of1,000,000
maximum of1,000,000
maximum of1,000,000
maximum of1,000,000
10 MB110 MB110 MB110 MB1N/AN/AN/AEmail Services: MaximumSize of Email Message(Body and Attachments)
5 MB forfile
5 MB forfile
5 MB forfile
5 MB forfile
N/AN/AN/AEmail-to-Case: MaximumNumber of EmailsConverted per Day attachments.
2 GB forattachments.2 GB for
attachments.2 GB for
attachments.2 GB for
feedattachments.
feedattachments.
feedattachments.
feedattachments.
1,0001,0001,0001,0001,0001,0001,000Extended Mail Merge:Maximum Number ofRecords
1 MB1 MB1 MB1 MB1 MB1 MB1 MBExtended Mail Merge:Maximum Total Size ofSelected Templates
For Group, Professional, Enterprise, Unlimited, and DeveloperEditions:
N/AN/AMerge Field:Case.Email_Thread
• Maximum number of emails: 200
• Email body truncation size: 32 KB
10 MB10 MB10 MB10 MBN/AN/AN/AOn-DemandEmail-to-Case: MaximumEmail Attachment Size
15
Email LimitsSalesforce Application Limits
DeveloperEdition
UnlimitedEdition
EnterpriseEdition
ProfessionalEdition
GroupEdition
ContactManager
PersonalEdition
Feature
Number ofuser licenses
Number ofuser licenses
Number ofuser licenses
Number ofuser licenses
N/AN/AN/AOn-DemandEmail-to-Case: Maximum
multipliedmultipliedmultipliedmultipliedNumber of EmailMessages Processed
(Counts toward limit forEmail Services)
by 1,000, upto a dailymaximum of1,000,000
by 1,000, upto a dailymaximum of1,000,000
by 1,000, upto a dailymaximum of1,000,000
by 1,000, upto a dailymaximum of1,000,000
1 The maximum size of email messages for Email Services varies depending on language and character set.
Salesforce Knowledge Limits
UnlimitedEdition
DeveloperEdition
EnterpriseEdition
ProfessionalEdition
GroupEdition
ContactManager
PersonalEdition
SalesforceKnowledge Limits
10,000 articlesN/AN/AN/AN/AMaximum numberof articles
100 article typesN/AN/AN/AN/AMaximum numberof article types
500 custom fields per article typeN/AN/AN/AN/AMaximum numberof custom fields perarticle type
5 file fieldsN/AN/AN/AN/AMaximum file fields
File fields are counted as attachments andcan be up to 5 MB.
N/AN/AN/AN/AMaximum file fieldsize
32 KBN/AN/AN/AN/AMaximum rich textarea size
Article events are tracked for up to 18months.
N/AN/AN/AN/AArticle historytracking
16 supported languagesN/AN/AN/AN/AMaximum numberof supportedlanguages
The import .zip file must meet thefollowing requirements:
N/AN/AN/AN/AArticle import
• There can only be one .csv file and one.properties file.
• The .csv file and the .properties file mustbe in the root directory.
16
Salesforce Knowledge LimitsSalesforce Application Limits
UnlimitedEdition
DeveloperEdition
EnterpriseEdition
ProfessionalEdition
GroupEdition
ContactManager
PersonalEdition
SalesforceKnowledge Limits
• The compression process must preservethe folder and subfolder structure.
• The .zip file can’t exceed 10 MB andthe uncompressed files can’t exceed 100MB.
• .csv files can’t have more than 10,000rows, including the header row.Therefore, you can have a maximum of9,999 articles and translations.
• .csv file rows can’t exceed 400,000characters.
• .csv file cells can’t exceed 32 KB.
• Each article in the .csv file can’t havemore than 49 translations.
5 category groups and 3 active categorygroups
N/AN/AN/AN/AMaximum numberof data categorygroups and activedata category groups
100 categories in a data category groupN/AN/AN/AN/AMaximum numberof categories perdata category group
5 levels in a data category group hierarchyN/AN/AN/AN/AMaximum numberof levels in datacategory grouphierarchy
8 data categories from a data category groupassigned to an article
N/AN/AN/AN/AMaximum numberof data categoriesfrom a data categorygroup assigned to anarticle
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 thepicklist, which is 15,000 characters. Note that each entry includes a linebreak and a return character that are not visible. Thesetwo additional characters per entry are counted as part of the 15,000 character limit.
17
Picklist LimitsSalesforce Application Limits
Additional Limits for Standard PicklistsFor standard picklists, entries can be up to 40 characters, not including linebreaks and returns. For standard multi-selectpicklists, the total number of characters for all entries cannot exceed 255.
For standard picklists in organizations that use record types or the Translation Workbench, you can have an unlimited numberof entries with the following exceptions for special picklists.
Maximum Number of EntriesPicklist Field
100Lead Status
100Task Status
50Task Priority
100Case Status
50Case Priority
100Opportunity Stage
Additional Limits for Custom PicklistsWithin the 15,000 total character limit, custom picklists can have:
• Up to 1,000 entries• Up to 255 characters per entry
Custom multi-select picklists can have:
• Up to 150 values• Up to 40 characters per value
Note that for multi-select picklists, users can select up to 100 values at a time on a record.
Sites Limits
Available in: Developer, Enterprise, and Unlimited Editions
Maximum PageViews
Service Request Time (perrolling 24-hour period persite)
Bandwidth Limit (per rolling24-hour period per site)
Maximum Numberof Sites
Edition
N/A10 minutes500 MB1Developer Edition
500,00030 minutes for sandbox
60 hours for production
1 GB for sandbox
40 GB for production
25Enterprise Edition
1,000,00030 minutes for sandbox
60 hours for production
1 GB for sandbox
40 GB for production
25Unlimited Edition
18
Sites LimitsSalesforce Application Limits
Workflow and Approval Limits
UnlimitedEdition
DeveloperEdition
EnterpriseEdition
ProfessionalEdition
GroupEdition
ContactManager
PersonalEdition
Workflow andApprovals Limits
For Enterprise, Developer, and UnlimitedEditions, each approval process can have upto:
N/AN/AN/AN/AApproval Processes
• 15 steps per process
• 25 approvers per step
Each organization can have up to:
• 500 approval processes per object
• 1,000 processes per organization
Approval request comments are limited to4,000 characters. In Chinese, Japanese, orKorean, the limit is 1,333 characters.
N/AN/AN/AN/AApproval RequestComments:Maximum Numberof Characters
For Enterprise, Developer, and UnlimitedEditions, each workflow rule and approvalprocess can have:
N/AN/AN/AN/AWorkflow Rulesand ApprovalProcesses
• 10 time triggers
• 40 immediate actions
• 40 time-dependent actions per timetrigger
Note that for both immediate andtime-dependent actions, there can be nomore than:
• 10 email alerts
• 10 tasks
• 10 field updates
• 10 outbound messages
1,00050500250
(Workflow isavailable as
N/AN/AN/AWorkflow TimeTriggers Per Hour
an add-onfeature forProfessionalEdition.)
1,000 perstandard
1,000 perstandard
1,000 perstandard
N/AN/AN/AN/AWorkflow EmailsPer Day
19
Workflow and Approval LimitsSalesforce Application Limits
UnlimitedEdition
DeveloperEdition
EnterpriseEdition
ProfessionalEdition
GroupEdition
ContactManager
PersonalEdition
Workflow andApprovals Limits
Salesforcelicense
2,000,000perorganization
Salesforcelicense
2,000,000 perorganization
Salesforcelicense
2,000,000perorganization
Workflow Alert Emails: Daily Workflow Alert Email LimitsThe daily limit for emails sent from workflow and approval-related email alerts is 1,000 per standard Salesforce license perorganization. The overall organization limit is 2,000,000. When the daily limit is reached, a warning email goes out to thedefault workflow user. If the default workflow user isn't set, then the warning email is sent to an active system administrator.
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 removinga user license immediately adjusts the limit's total. If you send an email alert to a group, every recipient in that group countsagainst your daily workflow email limit.
Data Related LimitsThe following limits are related to data stored in Salesforce.
Dates: Valid Range for Date Fields
Only dates within a certain range are valid. The earliest valid date is 1700-01-01T00:00:00Z GMT, or just after midnight onJanuary 1, 1700. The latest valid date is 4000-12-31T00:00:00Z GMT, or just after midnight on December 31, 4000. Thesevalues are offset by your time zone. For example, in the Pacific time zone, the earliest valid date is 1699-12-31T16:00:00, or4:00 PM on December 31, 1699.
20
Data Related LimitsSalesforce Application Limits
Import Limits
This table lists the import limits by type of record, as well as the permissions required for the import.
Users with accessImport record limitType of record
All users500 at a timeBusiness accounts and contacts ownedby you
Administrators;
Users with the “Modify All Data”permission
50,000 at a timeBusiness accounts and contacts ownedby different users
All users50,000 at a timePerson accounts owned by you
Administrators;
Users with the “Import Person Accounts”permission
50,000 at a timePerson accounts owned by different users
Administrators;
Users with “Read”, “Create”, and “Edit”on leads and the “Import Leads”permission
50,000 at a timeLeads
Administrators;
Marketing users (or users with the“Import Leads” permission and the
50,000 for importing leads as newcampaign members and updating thestatus of existing campaign members.
Campaign members
“Edit” permission on campaigns) canimport new leads as campaign members.Users also need the “Read” permissionon contacts to use the campaign updatewizard to make existing leads andcontacts campaign members.
Administrators;
Users with the “Modify All Data”permission
50,000 at a timeCustom objects
Administrators;
Users with the “Import Solutions”permission
50,000 at a timeSolutions
These records cannot be imported via the import wizards.Assets
Cases
Campaigns
Contracts
21
Import LimitsSalesforce Application Limits
Users with accessImport record limitType of record
Documents
Opportunities
Products
Note: Your import file cannot exceed 100MB in size, and each record in the file cannot be bigger than 400KB. Inaddition, each imported note and each imported description cannot exceed 32KB. Descriptions longer than 32KBare truncated.
Rules Limits
Different types of rules can have restrictions, depending on your Salesforce edition. The following table shows the restrictionswith respect to edition.
UnlimitedEdition
DeveloperEdition
EnterpriseEdition
ProfessionalEdition
GroupEdition
ContactManager
PersonalEdition
Restrictions
50 per object50 per object50 per object50 per objectNot AvailableNot AvailableNot AvailableActive Rules
(Limits applyto anycombinationof activeworkflow,assignment,auto-response,and escalationrules.
300 per object
1,000 perorganization
300 per object
1,000 perorganization
300 per object
1,000 perorganization
300 per object
1,000 perorganization
Not AvailableNot AvailableNot AvailableTotal RulesAllowed
(Limits applyto anycombinationof workflow,assignment,auto-response,and escalationrules, bothactive andinactive.)
22
Rules LimitsSalesforce Application Limits
UnlimitedEdition
DeveloperEdition
EnterpriseEdition
ProfessionalEdition
GroupEdition
ContactManager
PersonalEdition
Restrictions
For Professional, Enterprise, Developer, and UnlimitedEditions, each assignment, auto-response, and escalation rulecan have:
Not AvailableNot AvailableNot AvailableAssignment,Auto-response,andEscalationRules
• 3,000 rule entries
• 300 formula criteria rule entries
• 25 filter criteria per rule entry
200200200200Not AvailableNot AvailableNot AvailableTotal ActionsAllowed PerRule
Search Limits
Available in: All Editions except Database.com
The following are the file extensions and maximum file sizes supported for search.
Maximum SizeFile ExtensionsFile Type
5,120 KB.htm
HTML (only the text within a <body>tag)
.html
.xhtml
25,600 KB.pdfPDF
25,600 KB.pot
PPT
.pps
.ppt
5,120 KB.rtfRTF
5,120 KB.c
Text
.cpp
.css
.csv
.ini
.java
.log
23
Search LimitsSalesforce Application Limits
Maximum SizeFile ExtensionsFile Type
.sql
.txt
25,600 KB.doc
Word
.dot
5,120 KB, or a maximum cell limit of100,000 cells
.xls
.xlt
XLS
5,120 KB.xmlXML
Note: The contents of documents that exceed the maximum sizes are not searched; however, the document fieldsare still searched. Only the first 1,000,000 characters of text are searched. Text beyond this limit is not included inthe search.
Storage Capacity Limits
Storage CapacityEach edition includes a minimum amount of data storage and file storage. Professional, Enterprise, and Unlimited Editionsreceive a per-user storage amount multiplied by the number of users in the organization if the result is greater than the minimumstorage amount. Using data storage as an example, an Enterprise Edition organization with 600 users would receive 12,000MB (12 GB) of data storage, because 20 MB per user multiplied by 600 users is 12,000 MB. A smaller organization, forexample a Professional Edition organization with 20 users, would receive 1 GB of data storage because 20 MB per usermultiplied 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 SalesforceCRM Content User license provides an additional 512 MB of file storage, whether Salesforce CRM Content isenabled or not, bringing the total file storage allocation per user to 612 MB. To find out whether your organizationhas Salesforce CRM Content enabled, contact your administrator.
Storage Allocation Per UserLicense
File Storage Minimum perOrganization
Data Storage Minimum perOrganization
Salesforce Edition
N/A20 MB20 MB (approximately 10,000records)
Personal
20 MB of data storage and612 MB of file storage
11 GB1 GBContact Manager
20 MB of data storage and612 MB of file storage
11 GB1 GBGroup
20 MB of data storage and612 MB of file storage
11 GB1 GBProfessional
24
Storage Capacity LimitsSalesforce Application Limits
Storage Allocation Per UserLicense
File Storage Minimum perOrganization
Data Storage Minimum perOrganization
Salesforce Edition
20 MB of data storage and612 MB of file storage
11 GB1 GB, plus 5 MB for eachGold Partner license
Enterprise
120 MB of data storage and612 MB of file storage
11 GB1 GB, plus 5 MB for eachGold Partner license
Unlimited
N/A20 MB5 MBDeveloper
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 “User License Types” in the online help.
File Related LimitsThe following limits are related to files stored in Salesforce.
File Size Limits
The following are maximum file size limits for files in Salesforce.
AttachmentsRelated List
Documents TabSalesforceKnowledge
Salesforce CRMContent
Files Tab andChatter
Feature
5 MB forattachments
2 GBMaximum FileSize
• 5 MB for fileattachments
• 5 MB• 2 GB
• •10 MB forGoogle Docs
20 KB for acustom-app logo • 2 GB for feed
attachments• 38 MB whenuploaded via theAPI
• 10 MB for filesattached toemail• 10 MB when
uploaded viaVisualforce
File Share Limits
The maximum number of times a file can be shared is 100. This includes files shared with people, groups, and via links. If afile is privately shared and nears the 100 share maximum, consider making the file public by posting it to your feed.
25
File Related LimitsSalesforce Application Limits
Sandbox Limits• You can refresh a full sandbox 29 days after you created or last refreshed it. If you delete a full sandbox, you must wait 29
days to replace it.• You can refresh a configuration-only sandbox (including a developer sandbox) once per day.
• You can order up to a maximum of three full sandboxes.
• You can 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.
Sandbox Storage Limits• Full copy sandboxes have the same storage limit as your production organization.• Configuration-only sandboxes have a 500 MB storage limit.• Developer sandboxes have a 10 MB storage limit.• Sandboxes don’t send email notifications when storage limits are reached. However, if you reach the storage limit of your
sandbox, you cannot save new data in your sandbox. To check your storage limits, click Your Name > Setup > DataManagement > Storage Usage in your sandbox.
26
Sandbox LimitsSalesforce Application Limits
Chapter 2
Force.com Platform Limits
This chapter provides limits for the Force.com platform.
Apex Limits
Available in: Unlimited, Developer, Enterprise, and Database.com Editions
The following are Apex and batch Apex governor limits.
Apex Governor Limits
Because Apex runs in a multitenant environment, the Apex runtime engine strictly enforces a number of limits to ensure thatrunaway Apex does not monopolize shared resources.
LimitDescription
100Total number of SOQL queries issued1
200Total number of SOQL queries issued for Batch Apex and future methods1
50,000Total number of records retrieved by SOQL queries
10,000Total number of records retrieved by Database.getQueryLocator
20Total number of SOSL queries issued
200Total number of records retrieved by a single SOSL query
150Total number of DML statements issued2
10,000Total number of records processed as a result of DML statements, Approval.process, ordatabase.emptyRecycleBin
200,000Total number of executed code statements
1,000,000Total number of executed code statements for Batch Apex and future methods
6 MBTotal heap size3
12 MBTotal heap size for Batch Apex and future methods
27
LimitDescription
16Total stack depth for any Apex invocation that recursively fires triggers due to insert,update, or delete statements4
200For loop list batch size
10Total number of callouts (HTTP requests or Web services calls) in a request
120 secondsMaximum timeout for all callouts (HTTP requests or Web services calls) in a request
10 secondsDefault timeout of callouts (HTTP requests or Web services calls) in a request
10Total number of methods with the future annotation allowed per Apex invocation5
3 MBMaximum size of callout request or response (HTTP request or Web services call)6
10Total number of sendEmail methods allowed
100Total number of describes allowed7
25Total number of classes that can be scheduled concurrently
The greater of 500 or 10multiplied by the number oftest classes in the organization
Total number of test classes that can be queued per a 24-hour period8
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 relationshipqueries contribute to the row counts of the overall code execution. In addition to static SOQL statements, calls to the followingmethods 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 36 MB.
28
Apex Governor LimitsForce.com Platform Limits
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 fromthe invocation of the code that caused it to fire. Because spawning a new invocation of Apex is a more expensive operationthan a recursive call in a single invocation, there are tighter restrictions on the stack depth of these types of recursive calls.5 Salesforce also imposes a limit on the number of future method invocations: 200 method calls per full Salesforce userlicense, Salesforce Platform user license, or Force.com - One App user license, per 24 hours. This is an organization-widelimit. Chatter Only, Chatter customer users, Customer Portal User, and partner portal User licenses aren’t included in thislimit 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, calculatedas 200 * (3+2), not 200 * (3+2+100).6 The HTTP request and response sizes count towards the total heap size.7 Describes include the following methods and objects.
• ChildRelationship objects
• RecordTypeInfo objects
• PicklistEntry objects
• fields calls
• fieldsets calls
8 This limit applies to tests running asynchronously. This includes tests started through the Salesforce user interface includingthe Developer Console or by inserting ApexTestQueueItem objects using SOAP API.
In addition to the execution governor limits, Apex has the following limits.
• The maximum number of characters for a class is 1 million.
• The maximum number of characters for a trigger is 1 million.
• The maximum amount of code used by all Apex code in an organization is 3 MB.
Note: This limit does not apply to certified managed packages installed from AppExchange, (that is, an app thathas been marked AppExchange Certified). The code in those types of packages belong to a namespace uniquefrom the code in your organization. For more information on AppExchange Certified packages, see the Force.comAppExchange online help.
This limit also does not apply to any code included in a class defined with the @isTest annotation.
• There is a limit on the method size. Large methods that exceed the allowed limit cause an exception to be thrown duringthe 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 is limited to a maximum of 20 simultaneous requests to URLs with the same host. The host is definedby the unique subdomain for the URL, for example, www.mysite.com and extra.mysite.com are two different hosts.This limit is calculated across all organizations that access the same host. If this limit is exceeded, a CalloutExceptionwill be thrown.
• The maximum number of records that an event report returns for a user who is not a system administrator is 20,000, forsystem administrators, 100,000.
• Each organization is allowed 10 synchronous concurrent requests for long-running requests that last longer than 5 seconds.If additional requests are made while the 10 long-running requests are still running, they are denied.
29
Apex Governor LimitsForce.com Platform Limits
• A user can have up to 50 query cursors open at a time. For example, if 50 cursors are open and a client application stilllogged in as the same user attempts to open a new one, the oldest of the 50 cursors is released. Note that this limit isdifferent for the batch Apex start method, which can have up to five query cursors open at a time per user. The otherbatch Apex methods have the higher limit of 50 cursors.
Cursor limits for different Force.com features are tracked separately. For example, you can have 50 Apex query cursors,50 batch cursors, and 50 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 executesa class in a managed package when the object is updated. Then that class updates a second object, which in turn executesa different class in a different package. Even though the second package wasn’t accessed directly by the first, because itoccurs in the same transaction, it’s included in the number of namespaces being accessed in a single transaction.
• Any deployment of Apex is limited to 5,000 code units of classes and triggers.
• If you use the Data.com Clean product and its automated jobs, and you have set up Apex triggers with SOQL queries torun 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.
Batch Apex Governor Limits
Keep in mind the following governor limits for batch Apex:
• Up to five queued or active batch jobs are allowed for Apex.
• A user can have up to 50 query cursors open at a time. For example, if 50 cursors are open and a client application stilllogged in as the same user attempts to open a new one, the oldest of the 50 cursors is released. Note that this limit isdifferent for the batch Apex start method, which can have up to five query cursors open at a time per user. The otherbatch Apex methods have the higher limit of 50 cursors.
Cursor limits for different Force.com features are tracked separately. For example, you can have 50 Apex query cursors,50 batch cursors, and 50 Visualforce cursors open at the same time.
• A maximum of 50 million records can be returned in the Database.QueryLocator object. If more than 50 millionrecords are returned, the batch job is immediately terminated and marked as Failed.
• If the start method returns a QueryLocator, the optional scope parameter of Database.executeBatch can have amaximum value of 2,000. If set to a higher value, Salesforce chunks the records returned by the QueryLocator into smallerbatches of up to 2,000 records. If the start method returns an iterable, the scope parameter value has no upper limit;however, if you use a very high number, you may run into other limits.
• If no size is specified with the optional scope parameter of Database.executeBatch, Salesforce chunks the recordsreturned by the start method into batches of 200, and then passes each batch to the execute method. Apex governorlimits are reset for each execution of execute.
• The start, execute, and finish methods can implement up to 10 callouts each.
• Batch executions are limited to 10 callouts per method execution.
• The maximum number of batch executions is 250,000 per 24 hours.
• Only one batch Apex job's start method can run at a time in an organization. Batch jobs that haven’t started yet remainin the queue until they're started. Note that this limit doesn’t cause any batch job to fail and execute methods of batchApex jobs still run in parallel if more than one job is running.
30
Batch Apex Governor LimitsForce.com Platform Limits
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 someselected APIs.
API Requests Limits
Concurrent API Request LimitsThe following table lists the limits for various types of organizations for concurrent requests (calls) with a duration of 20seconds or longer.
LimitOrganization Type
5Developer Edition
5Trial organizations
25Production organizations
25Sandbox
Total API Request LimitsThe following table lists the limits for the total API requests (calls) per 24-hour period for an organization.
MaximumMinimumAPI Calls Per License TypeSalesforce Edition
1,0001,000N/AAll Editions:DebuggingHeader on APItesting calls for Apex specified.Valid in API version 20 andlater.
5,0005,000N/ADeveloper Edition
1,000,0005,000•• Salesforce: 1,000Enterprise Edition• •Professional Edition with
API access enabledSalesforce Platform: 1,000
• Force.com - One App: 200• Gold Partner: 200
Unlimited.However, at any
5,000Unlimited Edition • Salesforce: 5,000• Salesforce Platform: 5,000
high limit, it islikely that other
• Force.com - One App: 200• Gold Partner: 200 limiting factors
such as system loadmay prevent you
31
API LimitsForce.com Platform Limits
MaximumMinimumAPI Calls Per License TypeSalesforce Edition
from using yourentire allocation ofcalls in a 24–hourperiod.
5,000,000N/AN/ASandbox
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 aper-user basis. When an organization exceeds a limit, all users in the organization may be temporarily blocked from makingadditional 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 theCompany Information page at Your Name > Setup > Company Profile > Company Information. Administrators can alsoview a more detailed report of API usage over the last seven days by navigating to the Reports tab, selecting the AdministrativeReports folder and clicking the API Usage Last 7 days report.
Note: Limits are automatically enforced for all editions.
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 exceededa specified percentage of the limit. You can perform this configuration in Your Name > Setup > Monitoring > API UsageNotifications.
Bulk API Limits
Limit DescriptionBulk API Limit
You can submit up to 2,000 batches per rolling 24 hour period. You can't create newbatches associated with a job that is more than 24 hours old.
Batch limit
Batches and jobs that are older than seven days are removed from the queue regardlessof job status. The seven days are measured from the youngest batch associated with
Batch lifespan
a job, or the age of the job if there are no batches. You can't create new batchesassociated 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 nolarger than 10 MB.
• A batch can contain a maximum of 10,000 records.
• A batch can contain a maximum of 10,000,000 characters for all the data in abatch.
• A field can contain a maximum of 32,000 characters.
• A record can contain a maximum of 5,000 fields.
• A record can contain a maximum of 400,000 characters for all its fields.
32
Bulk API LimitsForce.com Platform Limits
Limit DescriptionBulk API Limit
• A batch must contain some content or an error occurs.
There is a five-minute limit for processing 100 records. Also, if it takes longer than10 minutes to process a batch, the Bulk API places the remainder of the batch back
Batch processing time
in the queue for later processing. If the Bulk API continues to exceed the 10-minutelimit on subsequent attempts, the batch is placed back in the queue and reprocessedup 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 counttoward this total.
The maximum time that a job can remain open is 24 hours. The Bulk API doesn'tsupport clients that, for example, post one batch every hour for many hours.
Job open time
API Query Cursor Limits
A user can have up to 10 query cursors open at a time. If 10 QueryLocator cursors are open when a client application, loggedin as the same user, attempts to open a new one, then the oldest of the 10 cursors is released. If the client application attemptsto open the released query cursor, an error results.
Some API Call Limits
Limit DescriptionAPI LimitAPI Name
Your client application can add up to 200 records in a single create()call. If a create request exceeds 200 objects, then the entire operationfails.
Maximum number ofrecords created
create()
The describeSObjects() call is limited to a maximum of 100objects returned.
Maximum number ofobjects returned
describeSObjects()
Your organization can have up to 5,000 records per license in theRecycle Bin at any one time. For example, if your organization has
Maximum number ofrecords in the Recycle Bin
emptyRecycleBin()
five user licenses, 25,000 records can be stored in the Recycle Bin. Ifyour organization reaches its Recycle Bin limit, Salesforce automaticallyremoves the oldest records, as long as they have been in the recyclebin for at least two hours.
Limits for returnedrecords
getDeleted() • If your getDeleted() call returns more than 600,000 recordsand the user is a system administrator, an exceptionEXCEEDED_ID_LIMIT is returned.
• If your getDeleted() call returns more than 20,000 records andthe user is not a system administrator, an exception
33
API Query Cursor LimitsForce.com Platform Limits
Limit DescriptionAPI LimitAPI Name
OPERATION_TOO_LARGE is returned. Note that this erroris returned when more than 20,000 records across the organizationhave been deleted, not just the records viewable by the user.
The login request size is limited to 10 KB or less.Login request size limitlogin()
Merge request limitsmerge() • Up to 200 merge requests can be made in a single SOAP call.
• Up to three records can be merged in a single request, includingthe master record. This is the same limit as the Salesforce userinterface. If you have more than three records to merge, use thesame master record in each request to avoid errors.
• External ID fields cannot be used with merge().
Your client application can change up to 200 records in a singleupdate() call. If an update request exceeds 200 records, then theentire operation fails.
Maximum number ofrecords updated
update()
By default, the number of rows returned in the query result object(batch size) returned in a query() or queryMore() call is set to
Batch size limitsquery() andqueryMore()
500. WSC clients can set the batch size bycallingsetQueryOptions() on the connection object. C# clientapplications can change this setting by specifying the batch size in thecall QueryOptions portion of the SOAP header before invoking thequery() call. The maximum batch size is 2,000 records. Howeverthis setting is only a suggestion. There is no guarantee that therequested batch size will be the actual batch size. This is done tomaximize performance.
The batch size will be no more than 200 if the SOQL statement selectstwo or more custom fields of type long text. This is to prevent largeSOAP messages from being returned.
Streaming API Limits
Limits protect shared resources. These are the default limits intended for basic consumers of Streaming API. If your applicationexceeds these limits, or you have scenarios where you need to increase the number of clients per topic or the number ofconcurrent clients across all topics, please contact salesforce.com.
LimitDescription
20Maximum number of topics (PushTopic records) perorganization
20 for Unlimited Edition and Enterprise Editionorganizations, 10 for all other organizations
Maximum number of clients (subscribers) per topic
20 for Unlimited Edition and Enterprise Editionorganizations, 10 for all other organizations
Maximum number of concurrent clients (subscribers) acrossall topics
34
Streaming API LimitsForce.com Platform Limits
LimitDescription
20,000 for Unlimited Edition and Enterprise Editionorganizations, 10,000 for all other organizations except free
organizations, where the maximum is 1000
Maximum number of events per day (24–hour period)
110 secondsSocket timeout during connection (CometD session)
40 secondsTimeout to reconnect after successful connection (keepalive)
2 hoursMaximum CometD session lifetime, regardless of activity
1300 charactersMaximum length of the SOQL query in the Query field ofa PushTopic record
25 charactersMaximum length for a PushTopic name
Email LimitsMass email is not available in: Personal, Contact Manager, and Group Editions.
The following are limits for the number of external email addresses allowed in single and mass emails sent using the API.
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 sentindividually.
Using the API, you can send single emails to a maximum of 1,000 external email addresses per day based on Greenwich MeanTime (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 Salesforceyou are using:
Address Limit per Mass EmailEdition
250Professional
500Enterprise Edition
1,000Unlimited Edition
Note: Note the following about email limits:
• The single and mass email limits don't take unique addresses into account. For example, if you [email protected] in your email 10 times, that counts as 10 against the limit.
• You can send an unlimited amount of email to your internal users. These limits also apply to emails sent usingthe API and Apex.
• In Developer Edition organizations and organizations evaluating Salesforce during a trial period, your organizationcan send mass email to no more than 10 external email addresses per day. This lower limit does not apply if yourorganization was created before the Winter '12 release and already had mass email enabled with a higher limit.
35
Email LimitsForce.com Platform 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.comMigration Tool, and the Metadata API.
Limit DescriptionMetadata Limit
Metadata API can deploy and retrieve up to 5,000 files at one time.
While a specific file size limit is not enforced, you might encounter out-of-memory errorsfor very large files.
Retrieving and deployingmetadata
Inbound and outbound change sets can have up to 5,000 files of metadata.Change sets
SOQL and SOSL Limits
Available in: Enterprise, Unlimited, Developer, and Database.com Editions
Limit DescriptionLimitFeature
32 fieldsORDER BY fields limitORDER BY clause inSOQL statement
Relationship query limitsRelationship Queries • No more than 25 child-to-parent relationships can be specifiedin a query. A custom object allows up to 25 relationships, so youcan reference all the child-to-parent relationships in one query.
• No more than 20 parent-to-child relationships can be specifiedin a query.
• In each specified relationship, no more than five levels can bespecified in a child-to-parent relationship. For example,Contact.Account.Owner.FirstName (three levels).
• In each specified relationship, only one level of parent-to-childrelationship can be specified in a query. For example, if the FROMclause specifies Account, the SELECT clause can only specify theContact or other objects at that level. It could not specify a childobject of Contact.
By default, SOQL statements cannot exceed 10,000 characters inlength. We are starting a pilot program to increase the Statement
Maximum length of SOQLstatements
SOQL statements
Character Limit in our SOQL queries. To raise the limit (to a
36
Metadata LimitsForce.com Platform Limits
Limit DescriptionLimitFeature
maximum of 20,000 characters), contact your salesforce.comrepresentative.
Note: Long, complex SOQL statements, such as statementsthat contain a large number of formula fields, can sometimesresult in a QUERY_TOO_COMPLICATED error. This occursbecause the statement is expanded internally when processedby Salesforce, even though the original SOQL statementis under the 10,000 character limit. To avoid this, reducethe complexity of your SOQL statement.
The SOSL statement character limit is tied to the SOQL statementcharacter limit defined for your organization. By default, SOQL and
Maximum length of SOSLstatements
SOSL statements
SOSL queries cannot exceed 10,000 characters. However, if yourorganization is participating in the pilot program that allows a higherSOQL query length limit of up to 20,000 characters, the raisedSOQL limit applies to SOSL queries as well.
The maximum offset is 2,000 rows. Requesting an offset greaterthan 2,000 will result in a NUMBER_OUTSIDE_VALID_RANGE error.
Maximum number of rowsskipped by OFFSET
OFFSET clause inSOQL statement
The following are SOQL limitations and tips that are specific to some Salesforce objects.
DescriptionObject
A SOQL query must filter on one of Id, ContentDocumentId, or LinkedEntityId.ContentDocumentLink
NewsFeed • No SOQL limit if logged-in user has “View All Data” permission. If not, specify aLIMIT clause of 1,000 records or fewer.
• SOQL ORDER BY on fields using relationships is not available. Use ORDER BYon fields on the root object in the SOQL query.
KnowledgeArticleVersion • Always filter on a single value of Language unless:
◊ There is a filter on Id or KnowledgeArticleId
◊ The context user has the “Edit Knowledge” or “View All Data” permission.
• Always filter on a single value of PublishStatus unless the query filters on oneor more primary key IDs. To support security, only users with the “Manage Articles”permission see articles whose PublishStatus value is Draft.
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 SELECTHasAccess, and ORDER BY MaxAccessLevel if you SELECT MaxAccessLevel.
• Maximum number of records that can be queried is 200.
37
SOQL and SOSL LimitsForce.com Platform Limits
DescriptionObject
UserProfileFeed • No SOQL limit if logged-in user has “View All Data” permission. If not, specify aLIMIT clause of 1,000 records or fewer.
• SOQL ORDER BY on fields using relationships is not available. Use ORDER BYon fields on the root object in the SOQL query.
Also, a SOQL query must include WITH UserId = {userId].
Vote • ParentId = [single ID]
• Parent.Type = [single type]
• Id = [single ID]
• Id IN = [list of IDs]
Visualforce Limits
Available in: Contact Manager, Group, Professional, Enterprise, Unlimited, and Developer Editions
ValueLimit
Less than 15 MBMaximum response size for a Visualforce page
135KBMaximum view state size in a Visualforce page
1 MBMaximum size of a Visualforce email template
10 MBMaximum file size for a file uploaded using a Visualforce page
Less than 15 MBMaximum size of HTML response before rendering, when Visualforce page is renderedas PDF
60 MBMaximum PDF file size for a Visualforce page rendered as a PDF
30 MBMaximum total size of all images included in a Visualforce page rendered as a PDF
15 MBMaximum response size of a JavaScript remote call
30 secondsMaximum response time for a JavaScript remote call
50,000Maximum number of rows retrieved by queries for a single Visualforce page request
1 millionMaximum number of rows retrieved by queries for a single Visualforce page request inread-only mode
1,000Maximum number of collection items that can be iterated in an iteration componentsuch as <apex:pageBlockTable> and <apex:repeat>
10,000Maximum number of collection items that can be iterated in an iteration componentsuch as <apex:pageBlockTable> and <apex:repeat> in read-only mode
38
Visualforce LimitsForce.com Platform Limits
ValueLimit
50Maximum number of field sets that can be displayed on a single Visualforce page.
10,000Maximum number of records that can be handled by StandardSetController
39
Visualforce LimitsForce.com Platform Limits