0

I am having a tough time understanding the governor's limits. I have a huge flow that does a bunch of CRUD. I keep getting an email that goes like this:

Caused the following Apex resource warnings:

Number of SOQL queries: 62 out of 100

Initially, I moved the big Database calls to an Apex using Apex Action within the flow to alleviate the heavy load to the Apex, but I am still getting the same email.

enter image description here

So does that mean if I call an apex class from within the flow is still tied by the rules of Flow Governance? i.e. only 100 Queries compared to 200 in apex?

4
  • 5
    It's 100 per transaction. Your entire flow is likely one transaction. You can/should bulkify your flow to reduce the number of database calls and/or split the flow into multiple transactions. There are a number of Q&As on both of these topics here, do a search.
    – identigral
    Commented Dec 18, 2023 at 17:45
  • 1
    ahh okay, that makes sense, thank you! Breaking transaction gave me the answer Commented Dec 18, 2023 at 20:06
  • 2
    @SimpleCode You said "200 in apex" - note that is only for async Apex. For synchronous Apex, the limit is 100 and of course includes the queries that the Flow is doing. Commented Dec 18, 2023 at 20:32
  • 2
    @identigral - you should add your comment as an answer
    – cropredy
    Commented Dec 18, 2023 at 23:44

0

You must log in to answer this question.

Browse other questions tagged .