Skip to content
Bug Barometer
All issues
Solution Deployed

Uncategorized

In API version 44, DescribeSObjectResult.getChildRelationships() checks Read Access to the child entity and parent relationship field

Summary

In API version 44, DescribeSObjectResult.getChildRelationships() only returns child relationships if the running user's profile provides Read access to the corresponding child entities, and Read access to the corresponding relationship fields.

For example, if a user with a custom profile doesn't have Read access to Order, its relationship with Opportunity won't be returned by getChildRelationships(). The same issue will happen if a user with a standard profile has Read access to Order, but no access to the Opportunity lookup field.

NOTES:

1) If the critical update "Enable Improved Caching of Org Schema" (https://releasenotes.docs.salesforce.com/en-us/spring19/release-notes/rn_apex_enable_improved_schema_caching.htm) is enabled, getChildRelationships() works as explained above regardless the API version of the Apex class where this method is used.

2) If the relationship is provided via a master-detail relationship field, getChildRelationships() just checks that the running user's profile provides Read access to the child entity, as Read access to the parent master-detail field cannot be removed.

Workaround

We haven't loaded the full details for this issue yet. Check the official page.

History

  1. First tracked here as Solution Deployed with 39 reports

    Nov 30, 2026

In API version 44, DescribeSObjectResult.getChildRelationships() checks Read Access to the child entity and parent relationship field · Bug Barometer