function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
DeptonDepton 

same function as roll up sum field but look up relationship

Hi I have two objects A & B

 

In the B object i have a field call total hours

 

B is the child object (look up relationship). I do not want to create a master detail relationship but I need to get in the A Object the sum of the total hour’s field.

 

 

How can i get this? I cannot create roll up summary fields because there is no master detail relationship....

 

Thank you!!

Fahad AkhtarFahad Akhtar

You can create a trigger on child object that should be fire everytime you insert or update any child record and should update the parent.

DeptonDepton

Thanks Fahad!

 

 

Do you have any sample trigger for this?

 

Any help would be really appreciate it!!

 

:)