How many Orders are successfully loaded when the developer attempts - ProProfs Discuss
Advertisement

How many Orders are successfully loaded when the developer attempts to load the 150 Orders? A developer creates an Apex Trigger with the following code block: List[Account] customers = new List[Account](); For (Order__c o: trigger.new) {Account a = [SELECT ID, Is_Customer__c FROM Account WHERE ID = :o.Customer__;a.Is_Customer__c = true;customers.add(a);} Database.update(customers, false);The developer tests the code using Apex Data Loader and successfully loads 10 Orders. Then, the developer loads 150 Orders.

This question is part of Salesforce Platform Developer 1
Asked by Cmduquer, Last updated: Nov 13, 2020

+ Answer
Request
Question menu
Vote up Vote down

4 Answers

xp17oc

xpoc

xp17oc
Xpoc

Answered Dec 15, 2019

The answer is 0. The reason is that we will hit the "too many SOQL queries 101" limit while we are still in the loop which means nothing will be inserted at all.

upvote 1 downvote
Reply 

shamsme123

shamsme

shamsme123
Shamsme

Answered Oct 30, 2019

The answer is not 0 since , Database.update(customers, false) is used, 100 records will be inserted.

upvote downvote 1
Reply 

Pankaj

Pankaj

Pankaj
Pankaj

Answered Jan 16, 2019

0

Total number of SOQL queries issued = 100

upvote downvote
Reply 

cmduquer

cmduquer

cmduquer
Cmduquer

Answered Oct 26, 2018

0

####
upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.