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
cw.ax43cw.ax43 

How to validate field-level security of Product/Product Code in Opportunity Product

Our application needs to validate the field-level security of Product/Product Code in Opportunity Product. As there are no Product(Product2Id) and Product Code(ProductCode) fields in Opportunity Product(OpportunityLineItem), I think we might need to go through PricebookEntry to validate them. However, I tried to turn Product Code Visible off, I can still query the ProductCode through PricebookEntry from OpportunityLineItem.

I was wondering how to validate them. Thanks for any help.

cw.ax43cw.ax43
Can anyone help for this question? Thanks a lot !