+ Start a Discussion
DilluSalesForceDilluSalesForce 

Work Flow Rule to Send emails

Hi,

     What is the max limit of emails that we can send using work flow rule.(how many emails can we send using workflow rule with out exceeding governing limits)

Best Answer chosen by Admin (Salesforce Developers) 
jkucerajkucera

While Apex emails are limited, workflow email alerts are unlimited.  The 10 limit applies to Apex triggered emails, not workflow emails.

 

I've sent out 200+ at once by mistake using dummy data.

 

Understanding Execution Governors and Limits

Because Apex runs in a multitenant environment, the Apex runtime engine strictly enforces a number of limits to ensure that runaway scripts do not monopolize shared resources. These limits, or governors, track and enforce the statistics outlined in the following table. If a script ever exceeds a limit, the associated governor issues a runtime exception that cannot be handled.

Governor limits are applied based on the entry point of your code. For example, if you have an anonymous block call a trigger, the limits that Apex runtime engine uses are the limits for the anonymous block, not for the trigger.

Governor limits apply to an entire organization, as well as to specific, certified namespaces. For example, if you install a certified managed package from Force.com AppExchange, (that is, an app that has been marked AppExchange Certified) the components in the package belong to a namespace unique from other components in your organization. Consequently, any Apex scripts in that package can issue up to 20 DML statements while executing. In addition, any Apex script that is native to your organization can also issue up to 20 DML statements, meaning more than 20 DML statements might execute during a single transaction if scripts from the certified managed package and your native organization both execute. Conversely, if you install a package from AppExchange that is not marked AppExchange Certified, the scripts from that package do not have their own separate governor limit count. Any resources they use count against the total for your organization. Cumulative resource messages and warning emails are also generated based on certified managed package namespaces as well. For more information on AppExchange Certified packages, see the Force.com AppExchange online help.

LimitTriggerAnonymous Block, Visualforce Controller, or WSDL MethodTest1
Total number of SOQL queries issued2201008100
Total number of records retrieved by SOQL queries1,000610,0008500
Total number of SOSL queries issued020820
Total number of records retrieved by a single SOSL query02008200
Total number of DML statements issued (insert, update, upsert, merge, delete, or database.emptyRecycleBin)201008100
Total number of records processed as a result of DML statements or database.emptyRecycleBin100610,0008500
Total number of executed script statements310,00046200,00020,000
Total heap size3200,000 bytes32,000,000 bytes31,000,000 bytes3
Total stack depth for any Apex invocation that recursively fires triggers due to insert, update, or delete statements51616816
For loop list batch sizen/a200 n/a
Total number of elements in a single List1,0003 1,00031,0003
Total number of elements in a single Set1,0003 1,00031,0003
Total number of elements in a single Map1,0003 1,00031,0003
Total number of Savepoint variables that can be set5585
Total number of rollback methods allowed2020820
Total number of Web service methods allowed101010
Total number of callouts (HTTP requests or Web services calls) in a transaction101010
Total request time for one callout (HTTP request or Web services call)60 seconds60 seconds60 seconds
Total request time for all callouts (HTTP requests or Web services calls) in a transaction120 seconds120 seconds120 seconds
Total number of methods with the future annotation allowed per Apex invocation710 1010
Maximum size of WSDL if converted to Apex1 MB 1 MB 1 MB
Maximum size of SOAP response to a callout (Web services call)1 MB 1 MB 1 MB
Total number of runAs calls when specifying a user allowed20 20 20
Total number of sendEmail methods allowed101010
Total number of ChildRelationship, RecordTypeInfo and PicklistEntry objects allowed10 1010
Total number of fields calls allowed10 1010
Total number of items (such as ideas) returned by the findSimilar method5 55
Total number of findSimilar calls allowed10 1010

 

All Answers

deepzdeepz

10 email alerts for both immediate and time-dependent actions

jkucerajkucera

While Apex emails are limited, workflow email alerts are unlimited.  The 10 limit applies to Apex triggered emails, not workflow emails.

 

I've sent out 200+ at once by mistake using dummy data.

 

Understanding Execution Governors and Limits

Because Apex runs in a multitenant environment, the Apex runtime engine strictly enforces a number of limits to ensure that runaway scripts do not monopolize shared resources. These limits, or governors, track and enforce the statistics outlined in the following table. If a script ever exceeds a limit, the associated governor issues a runtime exception that cannot be handled.

Governor limits are applied based on the entry point of your code. For example, if you have an anonymous block call a trigger, the limits that Apex runtime engine uses are the limits for the anonymous block, not for the trigger.

Governor limits apply to an entire organization, as well as to specific, certified namespaces. For example, if you install a certified managed package from Force.com AppExchange, (that is, an app that has been marked AppExchange Certified) the components in the package belong to a namespace unique from other components in your organization. Consequently, any Apex scripts in that package can issue up to 20 DML statements while executing. In addition, any Apex script that is native to your organization can also issue up to 20 DML statements, meaning more than 20 DML statements might execute during a single transaction if scripts from the certified managed package and your native organization both execute. Conversely, if you install a package from AppExchange that is not marked AppExchange Certified, the scripts from that package do not have their own separate governor limit count. Any resources they use count against the total for your organization. Cumulative resource messages and warning emails are also generated based on certified managed package namespaces as well. For more information on AppExchange Certified packages, see the Force.com AppExchange online help.

LimitTriggerAnonymous Block, Visualforce Controller, or WSDL MethodTest1
Total number of SOQL queries issued2201008100
Total number of records retrieved by SOQL queries1,000610,0008500
Total number of SOSL queries issued020820
Total number of records retrieved by a single SOSL query02008200
Total number of DML statements issued (insert, update, upsert, merge, delete, or database.emptyRecycleBin)201008100
Total number of records processed as a result of DML statements or database.emptyRecycleBin100610,0008500
Total number of executed script statements310,00046200,00020,000
Total heap size3200,000 bytes32,000,000 bytes31,000,000 bytes3
Total stack depth for any Apex invocation that recursively fires triggers due to insert, update, or delete statements51616816
For loop list batch sizen/a200 n/a
Total number of elements in a single List1,0003 1,00031,0003
Total number of elements in a single Set1,0003 1,00031,0003
Total number of elements in a single Map1,0003 1,00031,0003
Total number of Savepoint variables that can be set5585
Total number of rollback methods allowed2020820
Total number of Web service methods allowed101010
Total number of callouts (HTTP requests or Web services calls) in a transaction101010
Total request time for one callout (HTTP request or Web services call)60 seconds60 seconds60 seconds
Total request time for all callouts (HTTP requests or Web services calls) in a transaction120 seconds120 seconds120 seconds
Total number of methods with the future annotation allowed per Apex invocation710 1010
Maximum size of WSDL if converted to Apex1 MB 1 MB 1 MB
Maximum size of SOAP response to a callout (Web services call)1 MB 1 MB 1 MB
Total number of runAs calls when specifying a user allowed20 20 20
Total number of sendEmail methods allowed101010
Total number of ChildRelationship, RecordTypeInfo and PicklistEntry objects allowed10 1010
Total number of fields calls allowed10 1010
Total number of items (such as ideas) returned by the findSimilar method5 55
Total number of findSimilar calls allowed10 1010

 

This was selected as the best answer