New answers tagged


you need to use proper API, let's say that one lookup to contact, have an API named 'contact' so the second is probably created as a custom field by you and it has an API that one ends with "__c"


You just have to change the return type of the method to List<OpportunityLineItem>, currently, it expects the method to return a list of Opportunities, but you are, in fact, returning a list of Opportunity Line Items So your method will look like this: public static List<OpportunityLineItem> getOppProducts() { List<OpportunityLineItem> ...

Top 50 recent answers are included