• spoorthisri sp
  • NEWBIE
  • 25 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 3
    Replies
Here is the code that i have written:

public class AccountHandler {
    public Static Account insertNewAccount(String AccountName)
    {
        Account acc=new Account(name=AccountName)
        Database.SaveResult[] saveResultList = Database.insert(acc,false);
    }

}

Is it the right solution?, If yes please suggest me what is the execution code for this solution.
Here is the code that i have written:

public class AccountHandler {
    public Static Account insertNewAccount(String AccountName)
    {
        Account acc=new Account(name=AccountName)
        Database.SaveResult[] saveResultList = Database.insert(acc,false);
    }

}

Is it the right solution?, If yes please suggest me what is the execution code for this solution.