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
zabahzabah 

Ignoring defaultPrice to create new totalPrice?

Hey:

One product in our pricebook is a tax.  So the defaultPrice for this product changes from instance to instance. 

Is there a way to set the default price to a formula?

Or, is there a way to overwrite or ignore the defaultPrice property of a product when writing the totalPrice of an opportunity line item?  Whenever I set the totalPrice to my own value, SalesForce seems to ignore my value and multiply the product's defaultPrice by the opportunity line item's quantity.

Michael

adamgadamg
I don't have a detailed answer, but you might want to look at building an ActiveX control based sforce control or other browser-based extension to perform the calculations you seek.
zabahzabah

Thanks for the suggestion but there's no need.  I just update the OppLineItem's total price after I write it.  It's an extra step, but it works fine.

Michael