• #39018

    Differenciate between Trigger and Workflow in Salesforce?

    Difference between Trigger and Workflow?


    Salesforce | shariq shariq #1


    Workflow is automated process that fired an action based on Evaluation criteria and rule criteria.

    We can access a workflow across the object.

    We cannot perform DML operation on workflow

    We cannot query from database


    Trigger is a piece of code that executes before or after a record is inserted or updated.

    We can access the trigger across the object and related to that objects

    We can use 20 DML operations in one trigger.

    We can use 20 SOQL’s from data base in one trigger.

     Anjali #8


    1. Trigger can work across objects.
    2. Trigger works before and after some actions + On different DML actions like Insert, Update, Delete, Undelete
    3. Coding is required.
    4. Often needed for roll-up type scenarios where roll up summary fields cannot be used and also when a record needs to be created on a different object

    Workflow rules:
    1. Workflow Rules will be helpful to update the same object or master object in custom master-detail relationships.
    2. Coding is not required and they currently can only result in a task, email, field update, or outbound message
    3. Workflows work only after some actions i.e. entry criteria’s
    4. they can only cross objects in a master detail relationship, from the detail to the master, and only for certain scenarios (all custom to custom objects, some custom to standard objects, and even fewer standard to standard)




    Workflow is a point and clicks Tool which doesn’t need coding. When you want to take actions like Update filed, Email, Outbound message, and create the task from the same object or from child to the parent object(in the master-detail relationship) you can use workflow. You can also perform these action based on time triggers. It’s an automated tool which fires based on Evaluation criteria and rule criteria. Using workflow you can’t create a record.

    A trigger is a programmatic approach which fires when before or after a record is inserted, updated or deleted. Using a trigger you can work on multiple objects. It involves coding you can query and you can perform any DML operation.


Viewing 4 posts - 1 through 4 (of 4 total)

Please to reply to this topic.


We're not around right now. But you can send us an email and we'll get back to you, asap.


About Us

Forcetalks is a Salesforce collaboration platform for coders & developers, geeks & nerds, consultants & business heads, admins & architects, managers & marketers and of course the business owners. A community where you can learn from, where you can contribute to. For you. For Salesforce. Read More...

Copyright 2019 Forcetalks. All Right Reserved.

Log in with your credentials


Forgot your details?