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

When to prefer LWC over flows? What is the limitation of Salesforce flows.

When to prefer LWC over flows? What is the limitation of Salesforce flows. 
ANUTEJANUTEJ (Salesforce Developers) 
Hi Priyanka,

So Flows are basically, declarative way to achieve or perform logic using the elements from the flow.

Where as the LWC is a programmatic approach to achieve logics using code, LWC is a JS framework that is opensource which you can learn using trailhead.

For more details for declarative vs programmatic approach you can check below articles:


Additionally there is an article of when to use declarative programming, below is the link to that article: 


Generally, the thumb rule is that we would do it via declarative programming and in case if we want to extend the functionality and if the logic is not possible to be written in declarative programming tools then we go to code.

There are certain Considerations and Limits that are to be kept in mind in case if you want to use Flows, below is the links to those in an article:


Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.