I have access to the headless flow pilot and I have a process I would like to bulkify. Basically a Lead could be Opted in, in which case we need to make some fields true, or opted out, marking the same fields false.
I use a flow trigger to pass the Lead Id to an SObject Variable, then Fast Lookup to add these to a Collection. Then using the Collection loop through and assign true/false as required. The DML happens outside of the loop.
The above works fine for under 100 records, 100 or over it fails on too many SOQL queries...has anyone else truly bulkified a headless flow yet and what approach did you use?