You need to sign in to do that
Don't have an account?
ashok dadali 3
Manipulate Record with DML
HI Guys I am triyng to solve this trailhead problem but i am not able to solve pls help me whats is wrong in this programme.
public class AccountHandler {
public static Account insertNewAccount(String AccountName){
Account acct = new Account(Name=AccountName);
try {
insert acct;
} catch (DMLException e){
return null;
}
return acct;
}
}
public class AccountHandler {
public static Account insertNewAccount(String AccountName){
Account acct = new Account(Name=AccountName);
try {
insert acct;
} catch (DMLException e){
return null;
}
return acct;
}
}
Vishal Negandhi 16
I don't see anything wrong here.. still copying my code for your reference which passed the test.
Chandra Sekhar CH N V
I'm posting mine which worked for me, I could see a null check for account name