Description is not fetched in SOQL query on FieldDefinition when filtering by WHERE EntityDefinition.QualifiedApiName in ('*Object*ChangeEvent')
Last updated 17 days ago ·Reference W-8985969 ·Reported By 1 users
In Review
Summary
The description value is not fetched in SOQL query on FieldDefinition when filtering by WHERE EntityDefinition.QualifiedApiName in ('*Object*ChangeEvent')
Actual Result
Description value is not returned though it is present on the field.
Expected Result
Description value should be returned.
Repro
1. On Opportunity or Account objects, create a Custom Field. Lets say the Api name is customfield__c.
2. Add description on the Custom Field.
3. Run the SOQL query
SELECT Description, EntityDefinition.QualifiedApiName, QualifiedApiName, DataType FROM FieldDefinition WHERE QualifiedApiName = 'customfield__c' and EntityDefinition.QualifiedApiName IN ('Opportunity', 'OpportunityChangeEvent’)
4. Description on the Custom Field is not returned for Opportunity but is returned for OpportunityChangeEvent.
5. Run the SOQL query
SELECT Description, EntityDefinition.QualifiedApiName, QualifiedApiName, DataType FROM FieldDefinition WHERE QualifiedApiName = 'customfield__c' and EntityDefinition.QualifiedApiName IN ('Opportunity') and description is returned.
Workaround
None
Reported By (1)
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.
