Skip to main content
9 Antworten
  1. Lakhan Meghani (NA) Forum Ambassador
    2. Okt. 2021, 10:10

    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

0/9000