Question
reference field type documentation vs reality
The doc states the following:
| Reference | A string field containing a key to another record (a foreign key). |
(source)
According to the response of describe lead endpoint - contactCompany is a reference field:
{
"name" : "contactCompany",
"displayName" : "Contact Company",
"dataType" : "reference",
"length" : null,
"updateable" : false,
"crmManaged" : false
}, But we have encountered that it can store numbers:
"contactCompany" : 20,We’d like to understand how reference fields should be handled and whether Marketo provides any type guarantees at all. For example, can we expect other fields to contain values of different types?