You need to sign in to do that
Don't have an account?
Venkat aditya
trigger on two custom objects
I have to custom objects 1 and 2, 1 is master object, in master object i have a pick list field, now i want to write a trigger on child obj, when i select obj 1 through lookup from object 2, then parent obj picklist value should populate in child object text field.
Please tell me trigger code,
Thanks in advance.
Please tell me trigger code,
Thanks in advance.
Hi Venkat,
Before Context trigger will work in your requirement : -
Below is code snippet : -
Here in logic, :-
1. Contact is child Object
2. Account is Parent Object
3. AccountId is lookup Field on Contact
4. AccountSource is picklist field in parent Object (Account)
5. FirstName is text field on contact which will populate from picklist field on account.
All Answers
Here quote is child,opportunity is parent,change the logic according to your req.
Hi Venkat,
Before Context trigger will work in your requirement : -
Below is code snippet : -
Here in logic, :-
1. Contact is child Object
2. Account is Parent Object
3. AccountId is lookup Field on Contact
4. AccountSource is picklist field in parent Object (Account)
5. FirstName is text field on contact which will populate from picklist field on account.
Hi Venkat,
Please feel free to contact me in case of any issue regarding salesforce on my email Id : rajatzmaheshwari@gmail.com
Thanks