A developer has the following trigger that fires after insert - ProProfs Discuss
Topics
Products
Follow Us:

A developer has the following trigger that fires after insert andcreates a child Case whenever a new Case is created.List<Case> childcases = new List<Case>();for(Case parent: Trigger.new){Case child = new Case(ParentId = parent.ID, Subject =parent.Subject);childCases.add(child);}insert childCases;What happens after the code block executes?



A. A child case is created for each parent case in Trigger.new
B. The trigger enters an infinite loop and eventually fails
C. The trigger fails if the Subject field on the parent is blank
D. Multiple child cases are created for each parent case in Trigger.new

This question is part of Exam ng Pabebe Girls
Asked by Catherine halcombe, Last updated: Apr 25, 2020

+ Answer
Request

1 Answer

John Smith

John Smith

Answered Jun 14, 2017

The trigger enters an infinite loop and eventually fails
 

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.