I need to access the value from a roll-up field on my Opportunities, from it's related Opportunity Product.
When I use
oli.Opportunity.Software_Line_Item__c the value retrieved is always null.
So I've also tried
oli.OpportunityId.Software_Line_Item__c which causes an error in the compiler
Invalid foreign key relationship: OpportunityLineItem.OpportunityId
& just to make sure that it's not the roll-up field calculation that's not working as expected, I've tested
oli.Opportunity.Name which is also returning null.
I know this is basic but I don't have Eclipse installed so I can't check the correct reference to use. Could someone please let me know how I can navigate this relationship, to retrieve the value from the