You need to sign in to do that
Don't have an account?
Melanie Miller 11
Opportunity Products related list on Account Page
I have a related list on the Account page layout (see image) that shows the products that are associated with opportunities. (Accomplished via a lookup relationship on the Opportunity Product object) However, it shows the products from ALL Opportunities, and we only want to see these details for closed won Opps. What is the best way to get the products from open or lost Opps filtered out of this list? (We definitely want to use a related list solution and not Assets on the Account object.)
You could look at adding a custom lookup field from the Opportunity Product to the Account record, and only set it once an Opportunity is marked as Closed Won. Then, you'd find the child relationship pertaining to that lookup and add it to the Account page layout.
Otherwise, you're likely looking at an inline Visualforce page (using the Account as a Standard controller and an Apex extension class to handle the filtering). Alternatively, if you're looking to switch to Lightning Experience, you could look at implementing it as a Lightning Component.
Hope that helps,
- James Loghry
You could look at adding a custom lookup field from the Opportunity Product to the Account record, and only set it once an Opportunity is marked as Closed Won. Then, you'd find the child relationship pertaining to that lookup and add it to the Account page layout.
I wanted to follow up on Chris' question, Melanie - how did you do this as field updates do not seem to work on lookup relationships?
Hi Melanie,
I am interested in setting up something similar in our org...I was wondering if you would be able to share the VisualForce code you used to create this section?
Thank you!
Hi Melanie,
Quick question on this: how did you create the related list on the account object? I'm looking to implement exactly what you took the screenshot of, and then modifying it to only return prodcts from closed-won opps.
Thanks!
Paul
@Melanie when you say : I actually ended up simply using a filter in the lookup field settings to tell it to only include closed won opportunities.
i try to filter in the look up product opportunity but i don't have the stage in account. How do you do ? thanks a lot