To assign correct FLS permissions in bulk for a given profile I need to know which fields are readonly and which fields support Field Level Security.
I see that there is field
FieldDefinition standard object, but it is not supported when I try to make SOQL.
IsFlsEnabled is present in documentation of
FieldDefinition standard object, I received an error when I try to execute an SOQL in Apex code like
select Label, IsCalculated from FieldDefinition where IsFlsEnabled = True
No such column 'IsFlsEnabled' on entity 'FieldDefinition'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.
How do I overcome this problem?