The Community is hosting an End of Summer sweepstakes! Participants must complete tasks to earn tickets that will enter them with a chance to win a free year of Constant Contact and other great prizes!*
*No Purchase Necessary. For Official Rules, visit here. Constant Contact’s End of Summer 2020 Sweepstakes ends on October, 20, 2020 at 11:50 PM EST.

Problem with custom fields

Highlighted
Occasional Contributor

Problem with custom fields

I am sending JSON requests to the API formatted as follows. It all works except for the custom field, "Username." That's set up as a custom field in our account, but when I try to refer to it in my code as "Username," it generates an error. I've tried using "Custom Field 1" which just creates a "custom_field_1" field in my account.

 

Surely there's a way to put data into the existing "Username" field, right?

 

Here's how the request looks:

 

{"import_data": [
	{
		"first_name": "Joe",
		"addresses": [{
		"address_type": "PERSONAL",
		"state_code": "GA"
	}],
	"email_addresses": [
		"joe.user@example.com"
	],
	"custom_fields": [{
		"name": "Username",
		"value": "JoeUser"
	}]
}],

"lists": [
		"1"
	],
	"column_names": [
		"FIRST NAME",
		"STATE",
		"EMAIL",
		"USERNAME"
	]
}
3 REPLIES 3
Highlighted
Moderator

Re: Problem with custom fields

Hello,

 

Thank you for reaching out to Constant Contact API Support.

 

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

 

While it is possible to create custom fields with other naming formats using our website, the API cannot use custom fields that do not use the format described at the above link. This is because our API still has limits from our older Contact Management platform. While I can't provide a timeframe for when we will have updated functionality, limits, and features, I can say we are working to get them out as quickly as we can.

 

Let me know if you have any other questions and I'll be happy to help in any way I can!

 

Sincerely,
David B.
API Support Specialist

Highlighted
Member

Re: Problem with custom fields

Is there any updated information on this particular issue?

Highlighted
Moderator

Re: Problem with custom fields

Hello,

 

While I can't guarantee this timeframe, I can tell you that we are working on our V3 version of our API which should have these features, and we hope to have general availability for contacts calls by the end of June.

 

Please let me know if you have any other questions!

 

Sincerely,

David B.

API Support Specialist

Developer Portal

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

Visit Page

Constant Contact 2020 End of Summer Community Sweepstakes!

The Constant Contact User Community is hosting a sweepstakes. The more you participate, the more chances you have to win! Read on to learn more...

Read More
Featured