Guidance on bulkification of Flows?
Closed this issue · 2 comments
To be optimally helpful, I'd like to propose that the README should address the framework's ability to support queries and DML in Flow without crashing during bulk data operations. Based on some limited testing (see related StackExchange thread), I believe the framework does leverage Salesforce Flow bulkification features via Invocable.Action.
Sadly, Salesforce themselves do not address whether calling a flow using Invocable.Action bulkifies the request. Regardless, it would be nice to have some insight into this up front before installing the framework. Thanks for your consideration!
Thanks for checking out the framework. You are correct, the Invocable.Action class will automatically bulkify the flow interviews for you. Check out this issue for more details.
I am hesitant to update the readme until Salesforce updates their documentation so I have something to reference, but the TLDR is that your flows will be bulkified, just like Record Triggered Flows.
While not particularly focused on bulkification, I do have a blog post which does a deep dive comparison of Trigger Action Flows and compares them with Record Triggered Flows - check out this blog post: https://www.mitchspano.com/blog/Trigger_Action_Flow
Good to know this has been thought of before! Makes sense, I guess you should probably take Salesforce's lead on documenting the behavior. Of course, the fact that it's undocumented may also mean that it's unsupported, which could be cause for some discomfort.
I guess I was hoping to hear that you had it from the horse's mouth that this will continue to work in the future, but absent that, I still really like what I'm seeing with this framework, and am still planning to promote it.