1

I am architecting a solution and wanted to know whether information exists regarding the depth of governor limits, when a trigger invokes another trigger (different objects).

For example, I have 2 Objects, A + B.

  1. When a user updates Object A 10 SOQL queries are run
  2. Before the transaction is complete, a record is updated in Object B by Trigger on Object A (this trigger relies on 5 SOQL queries)
  3. Information is then queried from Object B and, finally, the Object A trigger is complete.

So, do I have 2 separate sets of governor limits? What's my cumulative SOQL Queries used? Are there other ramifications I should be aware of when relying on cross-object triggers?

2
  • 3
    Governor limits are for the entire transaction (Synchronous). From start to end across all classes, other triggers, field updates, and triggers and classes again until the transaction ends the counts pile up.
    – Eric
    Aug 31 '15 at 13:43
  • ok, posting as an answer then since it seems to meet your needs and answer your question
    – Eric
    Aug 31 '15 at 14:00
2

Governor limits are for the entire transaction (Synchronous). From start to end across all classes, other triggers, field updates, and triggers and classes again until the transaction ends the counts pile up

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.