function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
luckymeluckyme 

Opportunity Product issue

On the UI, Opportunity Product (a child of Opportunity) has Product. But in the schema (or if you use describe), Opportunity Product (or really OpportunityLineItem) does not have Product. Instead, it has PricebookEntry which has Product.

 

We are building a product which needs to expose Product as a field on Opportunity. We want to write the code using 'describe' instead of hardcode it. But then we have to expose the extra object PricebookEntry which may confuse user.

 

Anyone knows why the UI is out of sync with the backend for this?