Help me regarding this..??
9 Antworten
Lakhan Meghani (NA) Forum Ambassador
Hi,
Try this
public class AccountHandler {
public static Account insertNewAccount(String name) {
Account a = new Account();
a.Name = name;
try {
insert a;
} catch (Exception e) {
return null;
}
return a;
}
}
Please read this-
https://developer.salesforce.com/forums/?id=906F0000000BH6yIAG