Difference between salesforce workflow rules and Triggers
|Triggers||Work flow rules|
|Triggers would able to work across salesforce objects.||Workflow Rules will be helpful in updating the same object or the master object in master-detail relationship.|
|You need to do coding in trigger.||Workflow rule is a declarative one and doesn’t require coding.|
|Triggers having event handlers which can run before saving into database and after saving into database.||Workflow rules work only after some actions i.e. entry criteria’s.|
Limitations of workflows:
- Workflow rule can’t create or update a separate object.
- It is not allowed to reference certain fields like Owner.name