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 updateContactAddress on Account (after insert) { list<contact> contactList= new list<contact>(); for (Account acc: trigger.new) { Contact c= new contact(); c.AccountId= acc.ID; c.Shipping_Address__c= acc.BillingCity + ' ' + acc.BillingCountry + ' ' + acc.BillingState + ' ' + acc.BillingPostalCode; c.LastName=acc.Name + ' '+ 'contact'; contactList.add(c); } insert contactList; }
whenever contact is created then you need to copy the billing address values to shipping address ? Am i correct.
Thanks!!
Check this link : https://salesforce.stackexchange.com/questions/328689/if-contact-is-created-without-a-mailing-address-copy-related-account-address
Thanks
Anil.B