You need to sign in to do that
Don't have an account?
SFUser
I want to get child's record total amount from parent record
Hi all,
i have one field in child and parent, in child object i.e. bank_balance__C and in parent object i.e. Totalbankbalance__C.
For example,
record1------- bank_balance__C =100
record2------- bank_balance__C =100
record3------- bank_balance__C =100
my required field is totalbankbalance__C =bank_balance__C+bank_balance__C+bank_balance__C
totalbankbalance__C=300.
can any one help me.
thanks in advance
i have one field in child and parent, in child object i.e. bank_balance__C and in parent object i.e. Totalbankbalance__C.
For example,
record1------- bank_balance__C =100
record2------- bank_balance__C =100
record3------- bank_balance__C =100
my required field is totalbankbalance__C =bank_balance__C+bank_balance__C+bank_balance__C
totalbankbalance__C=300.
can any one help me.
thanks in advance
Try Below Trigger Please Close Your Query By Marking it As Best Answer So It Helps Others In Future
Thank You!
All Answers
Try Below Trigger Please Close Your Query By Marking it As Best Answer So It Helps Others In Future
Thank You!
Suppose i assume Contact as child object and Account as Parent object from your above code...
now i want to write the code in Parent object.. i.e. on Account object..is it possible to write the code on Parent object for this requirement? if it possbile could you please modify and send it.
Thanks.
I Think It Will Not Work Properly Coz IF You Do Update Parent Field On Child Nothing Will Happen on Parent Record Until You Also Update Parent Record
You Can Try Roll-up Summary Field If You Want To Avoid Code Makr Roll-up Summary Field on Parent Object Select Sum option And Then Select Field Of Which You Want The Sum Of
Make Sure Parent And Child Have Master-detail Relationship For This
Please Close Your Query By Marking it As Best Answer So It Helps Others In Future
Thank You!