You need to sign in to do that
Don't have an account?
Nagarjun T
trigger to create contact record from account object
I Need to create contact record automatically when account record is created
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
{
List<Contact> conlst = new List<Contact>();
For(Account acc:Trigger.New){
Contact con = New Contact();
con.lastname = acc.name;
con.phone = acc.phone;
con.accountid=acc.id;
conlst.add(con);
}
insert conlst;