You need to sign in to do that
Don't have an account?
HOW TO WRITE A TRIGGER Account Name will comes to related contact last name
HI,
here i was attached two pics
my quetion is how to write a trigger as
when creating a record in account, Account Name will comes to related contact last name


please help me,
thanks,
NAGARJUNA REDDY NANDIREDDY
here i was attached two pics
my quetion is how to write a trigger as
when creating a record in account, Account Name will comes to related contact last name
please help me,
thanks,
NAGARJUNA REDDY NANDIREDDY
I got your question, But before to reach at a solution, We have certain condition which you must have to follow to get a workaround for this case. Please read conditions mentioned below -
1) You need to override the "New Contact" button shown in the Contact related list of Account.
2) If you are agree with the 1st point then this solution will be org dependent, means If you are working on multiple orgs and moving your code from one org to another then this solution will not work for you.
Please give your thoughts and let me know your queries.
Thanks & Regards,
Kapil Kaushik
Please use the below trigger to create contact when creating account.
Please mark it as best answer if it solves your problem.
Thanks,
Dilip.
Please use below code.
Thanks,
Swaraj Behera
1) Do you really wants to create multiple contacts when any new Account is created or
2) You want to show the Account Name as the Last Name of contact on the standard Create page of a Contact ?