How many Orders are successfully loaded when the developer attempts - ProProfs Discuss
Topics
Products
Follow Us:

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 customers = new List(); 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: Jan 16, 2020

+ Answer
Request

4 Answers

xpoc

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.

1
 

shamsme

Shamsme

Answered Oct 30, 2019

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

1
 

Pankaj

Pankaj

Answered Jan 16, 2019

0

Total number of SOQL queries issued = 100

 

cmduquer

Cmduquer

Answered Oct 26, 2018

0

####
 

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

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