How can the helper class warn users when the trigger exceeds DML - ProProfs Discuss
Topics
Products
Follow Us:

How can the helper class warn users when the trigger exceeds DML governor limits? A developer creates an Apex helper class to handle complex trigger logic.



A. By using Limits.getDMLRows() and then displaying an error message before the number of DML statements is exceeded.
B. By using ApexMessage.Message() to display an error message after the number of DML statements is exceeded.
C. By using PageReference.setRedirect() to redirect the user to a custom Visualforce page before the number of DML statements is exceeded.
D. By using Messaging.SendEmail() to continue the transaction and send an alert to the user after the number of DML statements is exceeded.

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

+ Answer
Request

2 Answers

drmcgee

Drmcgee

Answered Feb 12, 2020

By using Limits.getDMLRows() is the right answer

 

catherine halcombe

Catherine halcombe

Answered Jul 29, 2018

By using Messaging.SendEmail() to continue the transaction and send an alert to the user after the number of DML statements is exceeded.
1
 

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.