fflib-apex-common
fflib-apex-common copied to clipboard
Custom Metadata query - Metadata Relationship fields not supported
trafficstars
When custom metadata tables include references to related metadata (e.g. Entity or Field Definitions), fflib_QueryFactory throws an exception.
FeatureSetDefinition__mdt.ParentObject__r is not a lookup or master-detail field but is used in a cross-object query field.
The field definition for such a reference shows next to nothing of value; SoapType = String, isIdLookup = false, getRelationshipName = null. Short of avoiding the selector/queryfactory constructs, what are some simple fixes to the above conundrum?
@daveespo @stohn777 Is there already some update about this problem? I ran into this issue again today. How do you advise we resolve this issue?