You need to sign in to do that
Don't have an account?
Matthew Hayes 46
Error message Price Book
I am getting the following error message"field integrity exception: Pricebook2Id (cannot change pricebook on opportunity with line items)". I am not sure what this means. We had an opportunity come in and after we went through the process realized that the price book was incorrect. We need to update the price book so we can update the price. FYI, I am an admin and not a developer.
Yes, I have shared sample links to review on related error.
Please mark as Best Answer if above information was helpful so that it can help others in the future.
Thanks,
Vinay Kumar
All Answers
Review below links for similar issue and looks like your Opportunity.Pricebook2Id should be equal to your OLI.pricebookEntry.Pricebook2Id.
https://salesforce.stackexchange.com/questions/110751/error-pricebookentryid-pricebook-entry-is-in-a-different-pricebook-than-the-on
https://ipfs-sec.stackexchange.cloudflare-ipfs.com/salesforce/A/question/110751.html
Update your logic accordingly.
Hope above information was helpful.
Please mark as Best Answer so that it can help others in the future.
Thanks,
Vinay Kumar
Yes, I have shared sample links to review on related error.
Please mark as Best Answer if above information was helpful so that it can help others in the future.
Thanks,
Vinay Kumar