I am trying to update the UnitPrice on the OpportunityLineItem object; however, it does not update the field, my code is as follows:
Id oliId = '00k1w000006SpWE'; OpportunityLineItem oli = [SELECT Id, UnitPrice FROM OpportunityLineItem WHERE Id = :oliId]; oli.UnitPrice = 100.01; update oli;
I am expecting the unit price to be 100.01; however, it shows the old value.
I checked the SOAP API for OpportunityLineItem, and it stays that UnitPrice field can be updated. I also disabled the triggers and workflow rules.