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
ArmanMArmanM 

Custom field

Hi, 

We need to sum up a value from a field in a custom object, and we just need some help with this. Here are some details on this-
a) Custom object: Network_Product__c
b) Data type: lookup relationship with Opportunity
c) Field needing summing: Revenue__c
d) field data type: Number
e) Need to show this sum in opportunity

How can we do this without changing custom object's relationship to master-detail. Please help, we are stuck on this.

Thank you !


 
mrkimrki
Hi,

As such there is no way to generate a field that sums related objects if the lookup relationship is used. However if your organization has support for Apex, you can implement such functionality with a trigger. See link below for details:

https://www.sundoginteractive.com/blog/rollup-summary-with-a-lookup-field-salesforce