If i am updating a value of a list of records : suppose 1. first there is a list of opportunity 2. after clicking any opportunity , oppli list will show 3. now i can update sales price of each opportunity,

4.upto this there are no problems but how i can get the sales price of opportunityLineitem in a list of opLI and update a custom field of parent opportunity with these and also other oppli sales price under that opportunity will get changed

  • Can you please elaborate your question ? It is not very clear – Dave May 21 '15 at 20:22
  • was that question or a puzzle .Not clear – Mohith Shrivastava May 21 '15 at 22:39

You will need to write a custom class extension and possibly a wrapper class.

I have done something similar before, you might be able to re-use.

You will need to query something like SELECT id, name, custom_field__c, opportunity.custom_field__c FROM opportunityLineitem WHERE opportunityId=:setOfOpportunityIds

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.