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
Alex Waddell 17Alex Waddell 17 

Help Bulkifying existing flow to avoid SOQL Limits 101


I currently have a flow that looks up and passes the ID of a Fire Department into an object called Service Plan. The Fire Department is found by looking up the BillingCity on the Account associated with the Service Plan
I am wondering if anyone can help me Bulkify this flow so I can insert over 100 service plans at a time without running into a SOQL Limit

I have about 5 flows that all have this problem so I am hoping if someone can help me out here, I can fix the others too

Below are screenshots of my flow which functions perfectly when creating a single record using the Lightning UI
The values for varRecordID and varCity are being set in Process builder

User-added image
User-added image
User-added image

Do i create a Fast Lookup to Service Plans and then loop through those service plans?  or Do i create a Fast Lookup to Fire Departments and then loop through the service plans?

Please Help!
NagendraNagendra (Salesforce Developers) 
Hi Alex,

Sorry for this issue you are encountering.

May I suggest you please double check if you have any triggers or flows are active on the respective object?

Usually, these might be causing the issue.

Happy to help further.