You need to sign in to do that
Don't have an account?
sachin shukla
Name field of Contact not present in FieldPermission
Hi All,
I am trying to identify field access of an object and used SELECT Id, Field, SObjectType, PermissionsRead, PermissionsEdit FROM FieldPermissions where SObjectType='Contact' this SOQL query. But Name field is missing in the result.
Can somebody help me to identify root cause for the above issue?
Thanks,
Sachin
I am trying to identify field access of an object and used SELECT Id, Field, SObjectType, PermissionsRead, PermissionsEdit FROM FieldPermissions where SObjectType='Contact' this SOQL query. But Name field is missing in the result.
Can somebody help me to identify root cause for the above issue?
Thanks,
Sachin
You can try below SOQL Query
SELECT Assignee.Name, PermissionSet.Id, PermissionSet.isOwnedByProfile, PermissionSet.Profile.Name, PermissionSet.Label
FROM PermissionSetAssignment
WHERE PermissionSetId
IN (SELECT ParentId
FROM ObjectPermissions
WHERE SObjectType = 'Account' AND
PermissionsRead = true)
I am looking out for the query which will give me field access information like Read Only, Hidden or Editable.
SELECT Id, Field, SObjectType, PermissionsRead, PermissionsEdit FROM FieldPermissions where SObjectType='Contact'
Above query giving me the output which i wanted, but Name field Contact Object is missing.
Thanks,
Sachin
Fields like Id, Name, CreatedById have this restriction.
The following field types don’t return a FieldPermissions record because they are assumed to always be readable.
The following field types don’t return a FieldPermissions record because they are assumed to always be readable and writable.