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.

List of fields from the list

Highlighted
Visitor

List of fields from the list

I'm able to display a list of my lists (->get_lists) , which returns:

 

List 1: General Interest

List 2: My Test List

 

With no issue.  But what I'd like to do now is display a list of the fields in each list (i.e. first name, last name, etc... and their tags).  Not finding it or just looking in the wrong place.  Could someone give me a hand and/or nudge me in the right direction please?

We are never lost. Just blissfully misdirected on an adventure with no known goal.
3 REPLIES 3
Highlighted
Moderator

Re: List of fields from the list

I'm not sure if you're talking about listing the actual values of the fields of your individual Contacts in these lists or if you are just trying to display the available fields that people can fill in when creating/updating a Contact.  The fields themselves are listed on this documentation resource and are static and available for all Contacts, regardless of which list(s) they belong to: http://community.constantcontact.com/t5/Documentation/Contacts-Collection-and-Resource/ba-p/25989

 

If you're looking to display the values of these fields for specific Contacts on specific lists, you would need to do a two step process:

 

1. Pull the members of the list(s) you want the information from using the List Members collection:http://community.constantcontact.com/t5/Documentation/Contact-List-Members-Collection/ba-p/25093

2. Pull the full detailed information for the Contacts you want the information for: http://community.constantcontact.com/t5/Documentation/Obtaining-a-Contact-s-Information/ba-p/25057

 

Dave Berard
Senior Product Manager, Constant Contact
Highlighted
Visitor

Re: List of fields from the list

Not trying to grab the information in the list, just the field name (label), type, default value, and tag

We are never lost. Just blissfully misdirected on an adventure with no known goal.
Highlighted
Moderator

Re: List of fields from the list

The fields are fully listed on the above link, which I'll add again in this reply.  Default value is always an empty string.  All our fields are text fields, with some like the StateCode and CountryCode being restricted value fields.  All limitations on the fields such as field length are on the bottom of this documentation page as well in the grid.  I'm not sure what the difference between field name and tag in your discription.

 

http://community.constantcontact.com/t5/Documentation/Contacts-Collection-and-Resource/ba-p/25989

Dave Berard
Senior Product Manager, Constant Contact
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