MYTHBUSTERS: Flow Edition

MYTHBUSTERS: Flow Edition

I often see posts in the ecosystem complaining about the direction of flows and low-code development on the Salesforce platform. While I agree with the opportunity to improve for the most part, I am tempted to give my take on a couple of recurring themes I see:

Flows are bad and Salesforce should ban them

Detail: At least the development of flows must not be allowed in production. All deployments should require code coverage.

My take: This is a valid request that can go on IdeaExchange (probably it is already there). This request usually comes from code developers who feel they are losing control of the custom development in their org. You can ban flows in your org. Why have you not done so? Do you need Salesforce to ban it for everyone so that you can make it happen?

Flows don't support good development/deployment practices

Detail: Flows don't support automated testing. Automated testing is key for an efficient CI/CD process.

My take: Many issues and opportunities exist in this area, especially related to automated testing. However, you can test flows. You can build flows in a scratch org. The process is just more difficult and slower. Remember that not all clients have a CI/CD process. Don't assume everybody is a large Enterprise.

Flows are not secure

Detail: There are documented incidents where screen flows deployed on digital experience sites were determined to be not secure.

My take: This topic has drawn a lot of attention lately. It is a critical topic and should be continuously emphasized and worked on. However, security needs to be evaluated and managed in totality. The focus on low code security is a little misdirected, especially in an era when people take uncalculated risks with LLMs. Does this mean we should only worry about low code security? What about code, integration, authentication security, prompt injections, etc? Are we good there?

Flows are slow; we should use pro code instead

Detail: Why would you use flow for triggers when Apex is faster? Just code everything all the time.

My take: Flows are slower than Apex in every category. So why would you use flow? Let me ask you this question: Why would you use batch jobs over real-time integration when real-time updates are faster? Why do we have architectural choices anyway? Let's call what the best solution is all the time and use only one single solution in every case. If you are not an Enterprise client without code developers in-house, would you want to build frequently-changing business logic inside an Apex trigger? I would not. Going back to the same point: Don't think everyone is an Enterprise client; don't think everybody has the same requirements.

You can find more of my comments on this topic in this Gearset podcast episode HERE.

What do you think? Please comment below.


Visit https://Flow-Canvas.com for Flow Canvas Academy: Get access to a free Flow Knowledge Assessment Exam.

If you ?? the newsletter, please recommend it to a friend or colleague.

#Salesforce #Flow #Automation #Development #Deployment #DevOps #Myth #Discussion

Igor Kudryk

I teach how to code in Salesforce | Apex Training | 1:1 and Group Coaching | Speaker | Fixing Trailhead @ learn-apex.com

5 个月

I personally love Screen Flows. And I think Salesforce doesn't invest nearly enough marketing is explaining how awesome they are! Can't say the same about record-triggered flows though haha :D

SeyitBek U.

Salesforce Developer

5 个月

i enjoyed the myths and your takes. Tesekur!

要查看或添加评论,请登录

Engin Utkan的更多文章

  • Tips for Hackathons

    Tips for Hackathons

    I participated in the Salesforce Agentforce Hackathon that took place in San Francisco right before TDX 2025. Overall…

  • Approval Rating

    Approval Rating

    Looking at the title, you may think I will post a political message. But no, this post is about the general sentiment…

  • Where are the Agentforce Wins?

    Where are the Agentforce Wins?

    Has Agentforce save your from getting wet under the rain while dining outside? Or has it helped you find the right gate…

  • Schedule Triggered Flow Best Practices

    Schedule Triggered Flow Best Practices

    I just wrote another Salesforce flow post in my best practice blog series. Read here to learn more about…

    2 条评论
  • Conversation Design Is an Important Focus When Implementing Agentforce

    Conversation Design Is an Important Focus When Implementing Agentforce

    Agentforce is changing the way businesses interact with their customers with the use of AI and natural language…

  • Supercharge Access Control With Custom Permissions

    Supercharge Access Control With Custom Permissions

    ?? Are you taking full advantage of Custom Permissions in Salesforce? These versatile tools offer granular control over…

  • How To Use Custom Metadata Types In Flow?

    How To Use Custom Metadata Types In Flow?

    Custom Metadata Types (CMDT) offer a solution for managing and deploying configuration data across environments. What…

  • Happy Holidays and 2025 Wishes

    Happy Holidays and 2025 Wishes

    In 2024, I generated a considerable amount of content and presented at international Dreamin' events. Was that…

  • My 2024 Wrapped: Salesforce Flow Best Practices

    My 2024 Wrapped: Salesforce Flow Best Practices

    What have I done in 2024 that can be wrapped into a present for the Holidays? I gathered the antipatterns I have seen…

  • Free Flow Course Opportunity

    Free Flow Course Opportunity

    I have a lot of projects going on here and there. Let me give you a rundown.

社区洞察

其他会员也浏览了