Skip to main content
1 risposta
  1. 25 giu 2024, 11:22

    Hello @Saurav Dadwal,

    System.Limits.getDMLRows() and Limits.getDMLRows() are essentially the same. Both methods return the number of records that have been processed with any statement that counts against DML limits in the current transaction context.

     

    The reason they are the same is that Limits is a class within the System namespace, and Salesforce allows the omission of the System namespace when referencing classes that belong to it. This is a convenience provided by the Apex language, making the code cleaner and easier to read.

0/9000