function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
IntegrationpvIntegrationpv 

1.Name three Governor Limits? 2.What are the pros and cons when using a Workflow Rule Field Update vs. a Formula Field?

William TranWilliam Tran

1.Name three Governor Limits? - 

There's like a thousand of them, here are some Apex limits:

Description Synchronous Limit 
Total number of records retrieved by SOQL queries 50,000
Total number of records retrieved by Database.getQueryLocator 10,000
Total number of SOSL queries issued 20
Total number of records retrieved by a single SOSL query 2,000
Total number of DML statements issued2 150
Total number of records processed as a result of DML statements, Approval.process, ordatabase.emptyRecycleBin 10,000

2.What are the pros and cons when using a Workflow Rule Field Update vs. a Formula Field?

Workflow Rule Field Update 

Pros: can update a field to another field, can update more field types than available for formula fields.  In general more robust then formula fields.

cons: subject to validation rules so could error out.  Can't update a formula field

vs. a Formula Field?

Pros; automatically calculate a value based on different rules/criteria.

​cons: Read-only, formula is static Can't use on certain fields like Rich Text Fields

Thx
Alaa AliAlaa Ali
thank you