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
bryansosa01bryansosa01 

Summarize form CustomObject1 and save results into CustomObject2

I have two custom Objects with the following fields:

CustomObject1 with the fields Amount and Date1

CustomObject2 with the fields TotalAmount and Date 2

 

 

What I want to make is a trigger that summarizes CustomObject1.Amount  and save the result into CustomObject2.TotalAmount  where CustomObject1.Date1 =CustomObject2.Date2

 

 CustomObject1 and CustomObject2 are NOT related.

 

I would really appreciate your help. Thanks.