fflib-apex-common icon indicating copy to clipboard operation
fflib-apex-common copied to clipboard

Custom Metadata query - Metadata Relationship fields not supported

Open gribis opened this issue 7 years ago • 4 comments
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?

gribis avatar Nov 11 '18 16:11 gribis

@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?

wimvelzeboer avatar Oct 27 '21 10:10 wimvelzeboer