function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sultansultan 

What is the exact disadvantage of Triggers ?

Best Answer chosen by sultan
Cloud_forceCloud_force
triggers slow down the process of insertion update on that particluar object[ascode execution will take its own time]. If you can avoid trigger and do it with configuration then that will be good. But if you cannot, then you have to go with triggers. Its upto you...

All Answers

Ravi NarayananRavi Narayanan
disadvantage?  there is nothing like disadvantage if you write trigger in proper way.    but we shud be careful before migrating to production as it may cause the DML operations to fail incase of errors
sultansultan
can you elaborate more..........
Virendra ChouhanVirendra Chouhan
Hi Raju,
 The disadvantages of using triggers over standard functionality is that you have to write test classes .And inconsistencies may take place by writing code as you cannot always know when the code may fail. So it is adviced that you should use standard salesforce functionality whereever possible and use apex code only when necessary.
Cloud_forceCloud_force
triggers slow down the process of insertion update on that particluar object[ascode execution will take its own time]. If you can avoid trigger and do it with configuration then that will be good. But if you cannot, then you have to go with triggers. Its upto you...
This was selected as the best answer