Activity Forums Salesforce® Discussions What is the main difference between trigger and workflow in Salesforce?

  • What is the main difference between trigger and workflow in Salesforce?

    Posted by Pooja on February 27, 2020 at 1:47 pm

    What is the main difference between trigger and workflow in Salesforce?

    Manish replied 4 years, 8 months ago 4 Members · 3 Replies
  • 3 Replies
  • Deepak

    Member
    February 28, 2020 at 6:47 am

    Hi Pooja,

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

    We can access a workflow across the object.

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

  • Arun

    Member
    February 28, 2020 at 7:13 am

    Hi Pooja,

    1. Workflow is a point and click which doesn't need any coding. When you want to take action (email, task, field update or outbound message) for the same object or from Child to parent object, you can use Workflow rules.

    2. Trigger: It's a programmatic approach and event-driven (insert, update, merge, delete). You can call it as advance version of Workflow.

    *Trigger works across all the objects.
    *You can create a new record through trigger which is not possible through workflow.

  • Manish

    Member
    February 28, 2020 at 7:24 am

    1. Workflow is point and click which doesn't need any coding. When you want to take action (email, task, field update or outbound message) for the same object or from Child to parent object, you can use Workflow rules.

    2. Trigger: It's a programatic approach and event driven (insert, update, merge, delete). You can call it as advance version of Workflow.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos