The basic key difference between flows and triggers are:
Record Triggered Flow: 1. Coding is not required. 2. It is executed before the Apex Trigger. 3.. If we go with flow then it’s easy to deploy as there is no need for any test class. 4.. Clear pictorial presentation of whatever logic we build for that trigger.
Apex Trigger: 1. Coding is required. 2. It is executed after the Flow. 3. There is a need to write the test class in Apex Trigger. 4. If we want to build complex trigger then we should go with apex trigger.
https://developer.salesforce.com/forums/?id=9065d0000007Bez
Thanks,
The basic key difference between flows and triggers are:
Record Triggered Flow:
1. Coding is not required.
2. It is executed before the Apex Trigger.
3.. If we go with flow then it’s easy to deploy as there is no need for any test class.
4.. Clear pictorial presentation of whatever logic we build for that trigger.
Apex Trigger:
1. Coding is required.
2. It is executed after the Flow.
3. There is a need to write the test class in Apex Trigger.
4. If we want to build complex trigger then we should go with apex trigger.
Hope this helps.
Thank you.