You need to sign in to do that
Don't have an account?

DML currently not allowed
Hi,
I created a custom object in sales force and tried to insert records from a custom apex class. I am getting the following message
DML currently not allowed
Thanks In advance
http://community.salesforce.com/sforce/board/message?board.id=Visualforce&message.id=434#M434
I am getting the same error when I am trying to insert a lead in Apex constructor...and the pagelink werewolf pointed is not worked, please help!!
System.LimitException: DML currently not allowed - is the error I am getting and there is no proper documentation in apex guide related to LimitException!!
In my experience, you cannot insert objects (Standard or Custom) in the constructor of an Apex class.
Yes, thats correct, thats what I realized after I posted the question...thank you :)