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
Ravi Chandra 64Ravi Chandra 64 

When should we build solutions declaratively instead of with code?

Prateek Singh SengarPrateek Singh Sengar
As a salesforce best practice, if something can be done using Configurations (Declarative) then its preferred over coding. The declarative framework is optimized for the platform and is always preffered.
utkarsh mishrautkarsh mishra
Declarative is preffered if fulfills your requirement, else go for code. You can find detailed analysis with pros and cons using below link

https://developer.salesforce.com/blogs/engineering/2014/12/forcedotcom-declarative-development.html