Activity Forums Salesforce® Discussions How to show an error message in apex code in Salesforce ?

  • Pooja

    Member
    February 23, 2020 at 4:18 pm

    ApexPages.Message myMsg = new ApexPages.Message(ApexPages.Severity.ERROR,'Error Message');
    ApexPages.addMessage(myMsg);

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos