Hey there,
I’m trying to create a contact with custom field values like explain in your documentation (Overview).
Ex:
{“contact”:{“email”:“cyrille+202012091140dev@iconosqua.re”,“first_name”:“Cyrille”,“last_name”:“M”,“fieldValues”:[{“field”:“BAD_TOKEN”,“value”:“False”},{“field”:“CHURNER”,“value”:“No”},{“field”:“COMPANY_INDUSTRY”,“value”:“”},{“field”:“COMPANY_TYPE”,“value”:“small_and_medium_business”},{“field”:“DATA_ACCESS_EXPIRED”,“value”:“True”},{“field”:“TWITTER_HANDLES”,“value”:0},{“field”:“FACEBOOK_HANDLES”,“value”:0},{“field”:“FREETRIAL”,“value”:“False”},{“field”:“TRIAL_NO_CONV”,“value”:“No”},{“field”:“INSTAGRAM_HANDLES”,“value”:0},{“field”:“MARKETING_STATUS”,“value”:“False”},{“field”:“NUMBER_OF_INSTAGRAM_FOLLOWERS”,“value”:“<1k”},{“field”:“PLAN”,“value”:“”},{“field”:“PLATFORM_LANGUAGE”,“value”:“english”},{“field”:“TEAM_MEMBERS”,“value”:1},{“field”:“USER_ROLE”,“value”:“role_super_admin”},{“field”:“USER_SIGN_UP_DATE”,“value”:“2020-12-09”},{“field”:“USER_CONFIRMED”,“value”:“False”},{“field”:“SOCIAL_PROFILE_SLOTS_FREE”,“value”:0},{“field”:“SOCIAL_PROFILE_SLOTS_USED”,“value”:0},{“field”:“SOCIAL_PROFILE_SLOTS_PAID”,“value”:0},{“field”:“SUBSCRIPTION_AMOUNT”,“value”:“”},{“field”:“COUNTRY”,“value”:“”},{“field”:“TOP_IG_FOLLOWERS”,“value”:0},{“field”:“TWITTER_PROFILE_NAMES”,“value”:“”},{“field”:“FACEBOOK_PROFILE_NAMES”,“value”:“”},{“field”:“IG_PROFILE_NAMES”,“value”:“”},{“field”:“API_FB_PROFILES”,“value”:0},{“field”:“API_IG_PROFILES”,“value”:0},{“field”:“API_PROFILES_TOTAL”,“value”:0},{“field”:“PROFILES_ADDED_TO_TRIAL”,“value”:0},{“field”:“ADVANCED_ONBOARDING_CALL”,“value”:“No”}]}}
Here is the return from the API:
{“fieldValues”:[{“contact”:“251132”,“field”:null,“value”:“No”,“cdate”:“2020-12-09T04:42:10-06:00”,“udate”:“2020-12-09T04:50:12-06:00”,“created_by”:“0”,“updated_by”:“0”,“links”:“…”,“id”:“5201944”,“owner”:“251132”}],“contact”:{“cdate”:“2020-12-09T04:42:09-06:00”,“email”:“cyrille+202012091140dev@iconosqua.re”,“phone”:“”,“firstName”:“CyrilleD”,“lastName”:“M”,“orgid”:“8”,“orgname”:“Tripnity”,“segmentio_id”:“”,“bounced_hard”:“0”,“bounced_soft”:“0”,“bounced_date”:“0000-00-00”,“ip”:“0”,“ua”:“”,“hash”:“11b8c5f4c72ac75e58cabe37698ee23c”,“socialdata_lastcheck”:“0000-00-00 00:00:00”,“email_local”:“”,“email_domain”:“”,“sentcnt”:“0”,“rating_tstamp”:“0000-00-00”,“gravatar”:“0”,“deleted”:“0”,“anonymized”:“0”,“adate”:“2020-12-09T04:49:54-06:00”,“udate”:“2020-12-09T04:50:11-06:00”,“edate”:null,“deleted_at”:“0000-00-00 00:00:00”,“created_utc_timestamp”:“2020-12-09 04:42:09”,“updated_utc_timestamp”:“2020-12-09 04:48:41”,“created_timestamp”:“2020-12-09 04:42:09”,“updated_timestamp”:“2020-12-09 04:48:41”,“created_by”:“0”,“updated_by”:“0”,“email_empty”:false,“links”:[“…”],“fieldValues”:[“5201944”],“id”:“251132”,“organization”:“8”}}
Unfortunately, it doesn’t work (and I saw lots of support tickets with this issue I guess …). It creates well the contact but without all these custom fields values. You can understand I will not make more than 30 requests to create/update these custom fields. Please, could you fix this issue asap?
Thanks a lot,
Cyrille