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
gregj777gregj777 

Roll-up summary for opportunities on contract object

I am trying to roll-up the amounts from a number of opportunities into a TOTAL_AMOUNT under the CONTRACT object. See below:

 

Scenario One:

OPP1 = $1

OPP2 = $2

OPP3 = $3

OPP4 = $4

OPP4 = $5

CREATE CONTRACT and sum Total_OPP_AMOUNT = $15 

 

Scenario Two:

Single Opportunity 

OPP1 = 1

No Contract required.

 

abhishektandon2abhishektandon2

What exactly is the issue? what is the relation between these 2 objects?

gregj777gregj777

It can't be done with a Rollup Summary or a Formula for the reasones no M-D Relationship. I think the only option is Apex Code. 

 

OsatoOsato

Hi, did you ever get a satisfactory solution to this? I want to do exactly the same thing.

 

regards,