When to use custom code and Salesforce Screen Flows
Now that you know the fundamental differences between Salesforce Flow and LWC, Salesforce Apex, and CSS, when is an appropriate time to use them? And when is an appropriate time to use a combination of both?
The general rule of thumb in Salesforce is to exhaust declarative methods before moving over to code. Salesforce has an incredible array of native options that solve most common business issues, and it’s highly possible they already have a setting, a Lightning layout, or a declarative solution that solves the business issue you’re facing. Before you go custom, do your research to prevent inadvertently introducing unintended redundancy into your system with code that could have been point-and-click. Therefore, you should use Salesforce Flow whenever feasible or advisable. However, as we mentioned earlier, Flow does have its limitations. We’ll walk down the path of these limitations with caution in this secti...