You need to sign in to do that
Don't have an account?
anirbasdev
Opportunities related to OpportunityLineItem
I have a request to create a visualforce page on the OpportunityLineItem Object that display all the opportunities associated to the same product as this OpportunityLineItem
Mark as best answer, If it resloves !! Controller :
Mark as resloved if it helps :) :)
Thanks,
Bhanu Prakash
visit ForceLearn.com
i need to display all related opportunity record to a specific product2 and integrate the visualforce page on the page layout of the Product2 object by using a standard controller "Product2" and controller extension
Try this code, In this code, you can see the ProductId and it's related Opportunities Id.
If you want to get their name also then change the code according to your requirement.
VF Page:
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks,
Ajay Dubedi