Pulling Remote Field ClassesBeta
For this example, let’s use custom fields set up on the Contacts model in Hubspot, which is mapped to the Merge Contact Common Model.
We can access Remote Field Classes for Contacts using this endpoint:
These two Remote Field Classes in the response are both custom fields defined by a Hubspot user, as we can tell from the is_custom
flag being set to true
.
The test_dropdown_custom_field
also has a list of accepted values under field_choices
.
Meanwhile, these two Remote Field Classes are standard fields from Hubspot, as the is_custom
flag is set to false
.
To access Remote Field Classes and values for a specific Contact, use the include_remote_fields=True query parameter.
This returns all of an object’s properties including Remote Field Classes metadata and values.