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
Alexander AtkinsonAlexander Atkinson 

My flow errors when trying to create more than 100 records.

Hello, I have created a flow for an event planner. It creates an event, tables, and seats for the event.
However when I try to create more than 100 records the flow fails. Is there any way to fix this?

Image of my flow:

User-added image
Khan AnasKhan Anas (Salesforce Developers) 
Hi Alexander,

Greetings to you!

You seem to be using DML within Loop, which would definitely hit your governer limit. I would recommend moving the same out of the loop. You need to bulkify Flow to Avoid Governor Limits. Modify your process criteria where they only query, create or update the required records and do not perform an extra query.

Please refer to the below links which might help you.

http://succeedwithsalesforce.com/5-best-practices-that-must-be-followed-when-building-flows/

http://creativesparq.ca/blog/2016/05/22/bulkifying-salesforce-com-flows-to-avoid-governor-limits/


I hope it helps you.

Kindly 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 and Regards,
Khan Anas
alex black 15alex black 15
Thank you for the post! Look at these ringtones here https://ringo-tones.com/151-rod-wave-heart-on-ice.html