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.

Getting the ID of a New Campaign

Highlighted
Occasional Contributor

Getting the ID of a New Campaign

Is there any way to get the ID of a new Campaign without searching for it?  It doesn't appear to be returned by the POST action.

1 REPLY 1
Highlighted
Moderator

Re: Getting the ID of a New Campaign

I just confirmed in my account that creating a Campaign through an API POST request returns a "201 Created" response and the body XML did contaign the Campaign ID.  Are you receiving the full response body XML and parsing it to get the Campaign ID or are you looking for it in the response message, which is always 201 Created?

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