0

I have two custom objects. Reservation__c and MoneyReceived__c and they are lookup relationship.

I want Reservation__c.totalReceived__c = sum of all MoneyReceived__c.amountReceived__c.

These are Money Received in list view.

There are one or more amountReceived__c per reservation.

I need help with writing formula calculating

sum of (amountReceived__c) = totalReceived__c

Or do I have to write a class?

2 Answers 2

2

For rolling up lookup objects, you will have to write custom code.

You can also levarage Declarative Rollup Summary Tool

You can also refer this blog for step by step instructions

In case you want to write custom code, you can refer this link, which uses a trigger to rollup.

1

@Logan H since the relationship is lookup relationship you need to write custom code(apex trigger) which you can easily find on internet.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .