Using v31.0 of the Salesforce REST API, when querying metadata for an object, if the object is of the type reference
, it will have it's referenceTo
field populated with the referenced table.
{
"fields": [
{
// ...
"referenceTo": ["MyReferencedTable"],
// ...
"type": 'reference',
// ...
}]
}
Notice that the referenceTo
field is array. To me this implies that the field could have more than one value. Is there a situation where I should expect a field that is a reference
type to reference more than one table?