A developer creates an Apex helper class to handle complex trigger - ProProfs Discuss
Topics
Products
Follow Us:

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

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

+ Answer
Request

1 Answer

cmduquer

Cmduquer

Answered Sep 25, 2018

By using Limits.getDMLRows() and then displaying an error message before the number of DML statements is exceeded.

####
 

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.