Custom Metadata Does Not Have a Name Field - Skuid Assumes it Does Like Other Objects

  • 1
  • Problem
  • Updated 2 years ago
  • Acknowledged
For whatever reason Salesforce did not call the master field "Name" for Custom Metadata (MDT) objects. Instead this is called "MasterLabel".

When you select a reference field on a Skuid model, Skuid automatically adds the "Name" field to the model. This causes and error since there is no Name field on the object. It can be deleted of course, but likely to cause confusion for persons .
Photo of ddeveaux

ddeveaux

  • 1,202 Points 1k badge 2x thumb

Posted 2 years ago

  • 1
Photo of Mark DeSimone

Mark DeSimone, Official Rep

  • 11,050 Points 10k badge 2x thumb
Hi Ddeveaux, I think I understand what you're describing in general terms. Would you be able to write out some simple steps to follow for reproducing this?
Photo of ddeveaux

ddeveaux

  • 1,202 Points 1k badge 2x thumb
Two Custom Metadata Objects:
Obj1_mdt
Obj2_mdt

Obj1.FieldLookup_mdt is lookup to Obj2_mdt

In Skuid when I select Obj1.Fieldlookup.mdt for my model, Skuid will add TWO fields by default to the model.
FieldLookup_mdt
FieldLookup.Name_mdt (This is what is incorrect. This field is called FieldLookup.MasterLabel_mdt for Custom Metadata.)

I can assume Salesforce just wanted to clearly distinguish these objects from regular objects in backend.
Photo of Mark DeSimone

Mark DeSimone, Official Rep

  • 11,050 Points 10k badge 2x thumb
When the name field is automatically added, are you then able to remove it in the builder? If not, I'd recommend looking at the page's XML and seeing if you can remove the unwanted field definition from there. 
Photo of ddeveaux

ddeveaux

  • 1,202 Points 1k badge 2x thumb
This was just posted as a notification to the programmers at Skuid. The workaround to delete the field is easy enough but this is something I'd think Zach and Co would want to make sure is on the punch list.
Photo of Mark DeSimone

Mark DeSimone, Official Rep

  • 11,050 Points 10k badge 2x thumb
That's much appreciated. I will pass this along.