function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
trigger ContactCreation on Account (after insert) { list<Contact> lstCon = new list<Contact>(); for(Account Acc: trigger.new){ Contact con = new Contact (); Con.FirstName = 'Dummy'; Con.AccountId = Acc.Id; Con.LastName = Acc.Name; lstCon.Add(Con); } insert lstCon; }
When ever accont created, do you want to create contact??
Thanks!!
If this helps, Please mark it as best answer.
Thanks!!