Share Your Experience With Others

Process Builder vs Triggers

Process Builder vs Trigger

Below are some limitations to using Process Builder and the advantages of using Apex triggers to address these particular scenarios:

1. Process Builders cannot handle before DML, It executes after a record has been created or updated. Whereas Apex triggers can handle both before and after DML operations.
2. Process Builder cannot handle delete and undelete DML. Whereas Apex triggers can handle all DML operations.
3. Processes do not trigger validation rules and can, therefore, invalidate data.
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.
4. It is all or none in case of Process Builder failure. But with Apex triggers partial success is possible.
5. Whenever a particular use case is not possible using Process Builder, consider using Apex triggers.

Process Builder Limitations

Order – You can’t change the order of criteria nodes or actions,after you add them the only way to reorder is to delete them and start over.

Setting field values – You can’t populate a field with a formula in process builder.You can only manually enter a literal or select another variable(i.e. field). To populate a text field with a formula create a separate formula field and then reference that in your process.

Sources: Salesforce Community and Slideshare

If i have missed something or any information is not appropriate then please tell me in comments.

Leave a comment