We all started somewhere! Share your experience on the Get Advice: Let's Get Started Sweepstakes thread and be entered to win a $100 credit on your Constant Contact account.


Regular Participant


 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.






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">
<title type="text">Contacts for Customer: joesflowers</title>
<link href="contacts" />
<link href="contacts" rel="self" />
<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" />

David J

Developer Portal

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

Visit Page