Activity Forums Salesforce® Discussions Why trigger is Preferred over Process Builder in Salesforce?

  • Udit

    Member
    February 6, 2020 at 1:45 pm

    Hello Anuj,

    Via process builder we can only perform below actions like:

    1. Create a record of any object type
    2. Update any related record—not just the record or its parent
    3. Use a quick action to create a record, update a record, or log a call
    4. Invoke a process from another process
    5. Launch a flow—you can’t schedule this action with workflow
    6. Send an email
    7. Send a custom notification
    8. Post to Chatter

    If we want to perform any other actions apart from above actions, then we use trigger in Salesforce.

  • Marziya

    Member
    February 6, 2020 at 2:20 pm

    Hii Anuj,

    Process Builder cannot handle delete and undelete DML. Whereas Apex triggerscan handle all DML operations. An error reported in Process Builder is more generic which makes it difficult to find the origin of the error. With Apex triggers, exception handling can be made more specific.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos