Unable to view/update custom fields using API

SOLVED
Go to solution
Broadway_Theatre_of_Pitman
Regular Participant

Unable to view/update custom fields using API

We initially built our contact database by uploading a text file. One of the fields was "refno". After the file was uploaded,

 

if I use the web front end - and search for an email address - and bring up the detail - I can see "Refno" with it's appropriate

value.

 

However, when I download that same contact using the API - the custom fields node is always blank.

If I set the custom field and try to update the record using the API - I get a message saying it found the custom field on file, but

    was unable to use it.

 

How do I go about viewing and/or setting the custom field for maintaining the contact list with the API - without having to upload the list using

the front web front end?

 

Thanks

George

1 ACCEPTED SOLUTION
Elijah_G
Member

Hello,

 

Based on what you're seeing, the cause of this is that the API is currently only able to interact with custom fields that follow a very specific naming convention that is covered here: http://developer.constantcontact.com/docs/contacts-api/api-gui-func.html

 

In order to manage your custom field data with the API, it will be required to move the contact data to a new field with a name matching what is described in the link above. This could be done with the following steps:

  1. Create a new Custom Field using the naming scheme described above
  2. Export your contact list from Constant Contact
  3. Re-import that list, assigning the "Refno" field to the new Custom Field
  4. The custom field will now appear on API interactions and be used freely in the bulk and individual contact APIs.

 

If you have any questions, please let me know!

 

Sincerely

Elijah G.
API Support Engineer

View solution in original post

1 REPLY 1
Elijah_G
Member

Hello,

 

Based on what you're seeing, the cause of this is that the API is currently only able to interact with custom fields that follow a very specific naming convention that is covered here: http://developer.constantcontact.com/docs/contacts-api/api-gui-func.html

 

In order to manage your custom field data with the API, it will be required to move the contact data to a new field with a name matching what is described in the link above. This could be done with the following steps:

  1. Create a new Custom Field using the naming scheme described above
  2. Export your contact list from Constant Contact
  3. Re-import that list, assigning the "Refno" field to the new Custom Field
  4. The custom field will now appear on API interactions and be used freely in the bulk and individual contact APIs.

 

If you have any questions, please let me know!

 

Sincerely

Elijah G.
API Support Engineer

View solution in original post

Developer Portal

View API documentation, code samples, get your API key.

Visit Page