Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
UserFieldAccess
Represents the access that the current user has to a field.
Available in Tooling API version 34.0 and later.
Fields
| Field | Details |
|---|---|
| DurableId |
|
| EntityDefinition |
|
| EntityDefinitionId |
|
| IsAccessible |
|
| IsCreatable |
|
| IsUpdatable |
|
| User |
|
| UserId |
|
SOQL Limitations
This object doesn't support some SOQL operations.
- GROUP BY
- Example Query: SELECT COUNT(qualifiedapiname), isfeedenabled FROM EntityDefinition GROUP BY isfeedenabled
- Error Returned: The requested operation is not yet supported by this SObject storage type, contact salesforce.com support for more information.
- LIMIT, LIMIT OFFSET
- Example Queries:
- SELECT qualifiedapiname FROM EntityDefinition LIMIT 5
- SELECT qualifiedapiname FROM EntityDefinition LIMIT 5 OFFSET 10
- An incorrect result is returned because LIMIT and LIMIT OFFSET are ignored.
- NOT
- Example Query: SELECT qualifiedapiname FROM EntityDefinition WHERE qualifiedapiname!='Account'
- Error Returned: Only equals comparisons permitted
- OR
- Example Query: SELECT qualifiedapiname, keyprefix FROM EntityDefinition WHERE isdeletable=true OR (isfeedenabled=false AND keyprefix='01j')
- Error Returned: Disjunctions not supported
- INCLUDES
- Example Query: SELECT ComplianceGroup FROM FieldDefinition WHERE EntityDefinitionId = 'Account' AND ComplianceGroup includes('GDPR')
- Error Returned: Unsupported filter type