You need to sign in to do that
Don't have an account?
ArrgHunter
Updating a custom field with mater-detail relationship
Hi guys,
I need help to update a custom field. I have two custom objects A and B with mater details relationship and both have education progress field. Every time When a new record is added to object B , i want to insert objects B’s (education progress fields) value into Object A’s education progress field and it will concatenate values with comma. Object A have one-to-many relationship with Object B.
Please suggest best way to achieve this.
Thanks in advance.
Regards,
For example -
There are records B - b1, b2, b3, b4, b5
b1, b2, b3 has parent as a1 and rest as parent as a2
Now if you are updating b1, then fetch its parent, which is a1, then fetch all child records of a1 which are b1, b2, b3 and update a1's field with all chid records (b1, b2, b3) field value.
condition will be every time created (1 one )