Learn Java: JAVA Tutorial : Beginner
Workflow | Trigger |
Workflow is automated process and it can be created using point and click | Trigger is a piece of code that executes before or after an event is performed on a record. |
Workflows will only helpful to update the same object or master object in custom master-detail relationships. | The trigger can update/create records of any object on the update/insert of the record. |
You cannot create a record using workflow rules | You can create records using the triggers |
We cannot query from database | We can use 20 SOQL’s from data base in one trigger. |
Workflow rules perform only 4 actions. | Triggers can perform multiple actions at different intervals of execution. |
Workflow rules can bypass custom validation rules. | Triggers(before) cannot bypass custom validation rules. |
Workflow can work only after some action. | Trigger can be used before and after some action. |
Comments
Post a Comment