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.

CFjqAjax

Highlighted
Participant

CFjqAjax

 Hi, I am using CFjqAjax for a replacement for cfgrid because bluedragon no longer supports this tag.


I am only able to retrieve the first 50 records because of the API.  Is there a way around this and can or if you can take a look at the code provided by CFjqAjax and find an alternative.


 


 


Thanks


Chris 

1 REPLY 1
Highlighted
Employee

Re: CFjqAjax

Unfortunately I am not familiar with CFjqAjax, but I will take a look and see if I can get this grid working with contacts from our API. At this time we currently only return 50 contacts per page, and a link to the next set of 50 if another page exists. It seems like you would just need to make a request to https://api.constantcontact.com/ws/customers/{user-name}/contacts and continue to make requests as long as a next link is present. Once you have all of that information aggregated you would create a cfquery of that information and bind that to the data grid being displayed.


 


See below for an example of the next link in the returned XML:


 


<?xml version='1.0' encoding='UTF-8'?>
<feed xmlns="http://www.w3.org/2005/Atom">
<id>http://api.constantcontact.com/ws/customers/joesflowers/contacts</id>
<title type="text">Contacts for Customer: joesflowers</title>
<link href="contacts" />
<link href="contacts" rel="self" />
<author>
<name>joesflowers</name>
</author>
<updated>2009-11-19T14:49:21.928Z</updated>
<link href="/ws/customers/joesflowers/contacts?next=g24umerp-fymhqg" rel="next" />
<link href="/ws/customers/joesflowers/contacts" rel="first" />
<link href="/ws/customers/joesflowers/contacts" rel="current" />
<entry>

David J

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