+ Start a Discussion
priyanka.mv26priyanka.mv26 

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:

>> http://www.nisarkhan.net/?p=522

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

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

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:

>> https://help.salesforce.com/articleView?id=flow_considerations.htm&type=5

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.  

Thanks.