Skip to main content
1 个回答
  1. 2024年6月25日 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