APIs & Integrations

ArunrajManrajan
Member

How to identify custom fields of contact using Rest API?

SOLVE

Hi Team ,

 

      I used Properties api to get all properties of contact . But I didn't found any flag to identify custom fields in the response . Can you guide me to get contact custom fields using rest api?

 

Sample Response of custom field : 

 

 [{  
      "name":"custom_phone",
      "label":"custom_phone",
      "description":"",
      "groupName":"contactinformation",
      "type":"number",
      "fieldType":"number",
      "deleted":false,
      "currencyPropertyName":null,
      "createdAt":1565589968997,
      "formField":true,
      "displayOrder":-1,
      "readOnlyValue":false,
      "readOnlyDefinition":false,
      "mutableDefinitionNotDeletable":false,
      "favorited":false,
      "favoritedOrder":-1,
      "calculated":false,
      "externalOptions":false,
      "displayMode":"current_value",
      "showCurrencySymbol":false,
      "hubspotDefined":null,
      "hidden":false,
      "updatedAt":1565589968997,
      "referencedObjectType":null,
      "hasUniqueValue":false,
      "createdUserId":7643155,
      "searchableInGlobalSearch":false,
      "optionSortStrategy":null,
      "isCustomizedDefault":false,
      "searchTextAnalysisMode":null,
      "optionsAreMutable":null,
      "textDisplayHint":null,
      "numberDisplayHint":"formatted",
      "updatedUserId":7643155,
      "options":[  

      ]
   },.....
0 Upvotes
1 Accepted solution
himanshurauthan
Solution
Thought Leader | Elite Partner
Thought Leader | Elite Partner

How to identify custom fields of contact using Rest API?

SOLVE

Hello @ArunrajManrajan 

 

I know it would not ease your task but can help you. Please have a look to THREAD. There is shared a list of contact properties that are default for a account. So in your codebase you can filter out which are default and custom.

 

Thanks

Digital Marketing & Inbound Expert In Growth Hacking Technology

View solution in original post

1 Reply 1
himanshurauthan
Solution
Thought Leader | Elite Partner
Thought Leader | Elite Partner

How to identify custom fields of contact using Rest API?

SOLVE

Hello @ArunrajManrajan 

 

I know it would not ease your task but can help you. Please have a look to THREAD. There is shared a list of contact properties that are default for a account. So in your codebase you can filter out which are default and custom.

 

Thanks

Digital Marketing & Inbound Expert In Growth Hacking Technology