6

Custom Metadata Types now support relationships, so we can have a reference to an object and even references to field definitions. Is there a way to reference the individual parts of compound fields, for instance FirstName and LastName on the Contact object? It doesn't appear to be possible, but wanted to see if anyone has found anything contradictory before I stick with plain old text fields instead.

Custom Metadata Relationship Considerations

6

We don't yet support this. FieldDefinition only includes fields as defined on the object, not individual subfields.

We are thinking about (but haven't yet ranked in our priority list) also allowing relationships to EntityParticle. EntityParticle would include any field or subfield on the object that is supported in a SOQL select clause.

  • Thanks for a catagorical answer, and please do add EntityParticle support! I believe the kind of code dealing with these relationships is the kind of code that'll need granular access to these fields. – Matt Lacey Jul 4 '17 at 3:20
  • This is bummer. @Avrom, any updates since your last comment? Matt Lacey, besides replacing field relationship with text fields, are they are any other workarounds you have come across? – Mitesh Sura Mar 9 '18 at 18:36
  • @SalesforceArchitect, here's what I have as of now: 1) This isn't scheduled for the Summer '18 release, but 2) It's high on the priority list and is (forward-looking statement) being at least seriously considered for Winter '19. – Avrom Roy-Faderman Mar 13 '18 at 23:24
  • Happy holidays! Safe harbor of course, but any updates on the priority of EntityParticle? – Adrian Larson Dec 28 '18 at 18:26
  • I believe that it's below getting formula references to custom metadata records working in process builder, but above pretty much everything else. – Avrom Roy-Faderman Jan 5 at 20:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.