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
buckleywhite.ax285buckleywhite.ax285 

custom formulas & products

Hi All--

I have a issue and I wonder if anyone has ever come across it before.  I want to create two opportunity level custom fields that sum up different products associated with the opportunity.  I.E., Opportunity Custom Field A sums the amounts of products 1,2 and 4; Opportunity Custom Field B sums the amounts of products 3 & 5.  These are different types of products (software and services,) so you should be able to look up by the names.  

I've tried this a few different ways, using both custom fields and s-controls and I can't seem to get it.  Any suggestions?

Thanks,
BW
KaushikKaushik
    Hi,
This can be possible by On-click Java Script or On Load S-Control.
You have to tag the products seperately and query them through SOQL and add the amounts and write them into the custom amount fields.

Hope this will help you out

Thanks
Kaushik