marcoflps | 2023-07-24 17:05:20 UTC | #1
Hi all, I'm trying to add a new contact on contact list, but i receive an error and couldn't find the problem with request
{"message":"The contact columns do not match what is required in the list","code":"invalid.contact.columns","status":400,"messageWithParams":"The contact columns do not match what is required in the list","messageParams":{"columnName":"[phoneNumber]"},"contextId":"d8621944-b167-44d1-ad8a-30aeb0e09ca9","details":[],"errors":[]}
here a example from WritableDialerContact object sented in request
var phoneNumberStatus = new PhoneNumberStatus(); phoneNumberStatus.setCallable(true); var contact = new WritableDialerContact(); contact.setContactListId(context.getContactList().getId()); contact.setCallable(true); contact.setData(Map.of("phoneNumber", context.getPhoneNumber())); contact.setPhoneNumberStatus(Map.of("phoneNumber", phoneNumberStatus));
jacobshaw | 2023-07-25 12:44:41 UTC | #2
Hi @marcoflps I created a contact list using this config and added a contact using the API. I got a successful response with this request config. Are you sure the phone number is getting set? The column being null could cause that error code
marcoflps | 2023-07-25 13:28:07 UTC | #3
Hi @jacobshaw
I made a lot of tests including requests on developer tools and all tests are failed But i decided delete old contact list and created a new On the new contact list i get success on tests
Thanks for you help
system | 2023-08-25 13:28:32 UTC | #4
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 21131