Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

How to avoid Error: "Too many SOQL queries: 101"

Asked by Darsh K May 10, 2023 649 views 1 answer
Share

About this question

  1. I am hitting salesforce limits in 3 cases:

      There are two Opportunities that will show the error above:

              When a user is adding a document from a large list of docs which is greater than 100? (Eg error when they are trying to pull a document from their library that has 196 documents) When processing a list of ATTACHMENTS greater than 100. When an Opportunity has 100 contacts, the controller throws an error. Opportunity "Opp with 100 Contacts 1 Document", if we click on the custom button on action. Opportunity "Opp with 1 Contact 102 Documents", if we click on the custom button on action.

              Your answer

              1 Answer

              More Salesforce discussions

              Learn & Explore

              Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

              Latest Salesforce Blogs

              Guides, tips and career advice on Salesforce from JanBask experts.