0

I need to retrieve both SObjectType (Schema.SObjectType) for ObjectPermissions and (Schema.SObjectField) for SobjectType field on ObjectPermissions.

When I try to access ObjectPermission.sObjectType and ObjectPermission.SobjectType in both cases I receive field token instead of both object token and field token.

1 Answer 1

0

To access ObjectPermission object token we need to execute the following code

Schema.sObjectType.ObjectPermissions.getSobjectType()

To access ObjectPermission SobjectType field token we can use just

ObjectPermission.SobjectType

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .