Pulling Remote Field Classes
This feature is only available to customers on our Professional and Enterprise plans. View the Merge Plans to learn more.
Endpoints and query parameters
Example
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:
GET https://api.merge.dev/api/crm/contacts/remote-field-classes
Custom Fields
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.
Standard Fields
Meanwhile, these two Remote Field Classes are standard fields from Hubspot, as the is_custom flag is set to false.
Accessing Field Values
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.