Skip to main content

I have a custom field on ProductItem object and I'm trying to access it in an apex method, that uses ProductItem. I can access all the rest of the fields, but not the one defined by me.  Any idea why this happens?

 

#Salesforce Developer

3 answers
  1. Sep 22, 2021, 1:51 PM

    Make sure that the field is visible to your profile. You can check that by clicking the field name and then click on the Set Field-Level Security button.

0/9000