Activity Forums Salesforce® Discussions System.LimitException: DML currently not allowed?

  • Suraj

    Member
    May 8, 2017 at 2:09 pm

    Hi Manpreet,

    You might be calling DML in the Constructor or in the Getter ANd Setter.

    You can't execute DML in the Constructor (or call a method that executes DML from a Constructor) and you can't execute DML in Getter and Setter Methods.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos