I have a custom field over my user object. And I want to update this user by the contact id from apex. How can i update the user record in salesforce. Because when I trying to update the field of current login user I am getting an error

DML currently not allowed

please help me to get the solution over this issue.

  • 1
    This error normally occurs when trying to do DML in constructor. Is it you case? – Sergej Utko Aug 19 '14 at 9:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.