APIs & Integrations

pquinta
Participant

API Contact Custom Property

SOLVE

Hello there,

 

I have created a custom property, named tags, in the contacts properties list. This new property is a multiple checkbox one with a set of values previously defined.

The problem begins when I try to get this contact via API, three scenarios happen:

 

1 -  if there has been no entry in that property whatsoever (it was never set or filled) it won't show up in the response JSON under properties. (why ???)

2 - if the property has a value then the response

{...,
 "properties":
       ....,
       "tags": {
            "value": "xpto",
            ...
       }
}

3 - If there has been a previous value, but then for some reason they decide to remove all content from the property, the response then comes like this which was what i expected to begin with in scenario 1

{...
 "properties":
       ....,
       "tags": {
            "value": "",
            ...
       }
}

Can you please help me ?

1 Accepted solution
johnwfoster
Solution
Member

API Contact Custom Property

SOLVE

For the first bit, their documentation says that properties without a value are not returned by the API.  Not sure why, and it's definitely frustrating, but it is in the docs.

View solution in original post

1 Reply 1
johnwfoster
Solution
Member

API Contact Custom Property

SOLVE

For the first bit, their documentation says that properties without a value are not returned by the API.  Not sure why, and it's definitely frustrating, but it is in the docs.