Hi I created data type Yes/No for custom fields . I am trying sync contact with infusion soft having db field type Yes/No. It does not work. Any help ?
Would you elaborate with more detail, please? For example, how are you trying to “sync”?
Through API. I have databse in Mysql and using infusionsoft API to sync contact details. Please see attached screen shot of infusion soft custom filed create with data type!
- Field in image above says data type custom field has is Yes/No. But if you see it’s value it’s not ‘No’ it’s ‘0’. I think that is conflicting but I tried sending 0 and 1
in stead of Yes/No. Did not work.
Hmm… I just tried this using the REST API and it worked. Details below, I hope it helps. For a Yes/No custom Contact field, here’s what I found:
- Using
true
orfalse
(booleans) did not work.
Yields:{ "custom_fields": [ { "content": true, "id": 5 } ] }
HTTP/1.1 400 Bad Request
{ "message": "Failed to convert property value of type [java.lang.Boolean] to required type [java.lang.Integer] for property 'customFields[LoggedIn]'; nested exception is org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type [java.lang.Boolean] to type [java.lang.Integer]" }
- Using
1
or0
(ints) worked.
Yields:{ "custom_fields": [ { "content": 1, "id": 5 } ] }
HTTP/1.1 200 OK
- Using
"Yes"
or"No"
(strings) worked.
Yields:{ "custom_fields": [ { "content": "Yes", "id": 5 } ] }
HTTP/1.1 200 OK
1 Like
Thank you Mike. I will try using Yes/No string.