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
TJGAGTJGAG 

Update OpportunityLineItem UnitPrice through Ajax

Hello,

I'm trying to change the unit price on an opportunity line item thorugh Ajax.

I understand that I have to send "UnitPriceSpecified" to salesforce for the update to take place but I don't see how I can do this.

Anyone know if there is a way to do this?

Thanks,

Andrew
Ron HessRon Hess
there is some AJAX code to write opportunity line items in one of the AppExchange apps, "Sales Quote Line Items" i think it's called. you can go to the test drive and see the code or download the app and get the scontrols into your dev org.

it may help, i don't think i had to specify UnitPriceSpecified to get it to write opp line items with price info.