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 Deleted Email Campaigns

SOLVED
Go to solution
Highlighted
Occasional Advisor

List Deleted Email Campaigns

I'm try to get events for sent emails but can't seem to find all of the email campaigns in https://api.constantcontact.com/ws/customers/{user-name}/campaigns

 

I noticed that emails in the trash don't get returned.  Is that by design?  If so, is there another way to list emails in the trash?

 

Side note, if I have the ID of the deleted email campaign then I'm able to see it's details with https://api.constantcontact.com/ws/customers/{user-name}/campaigns/{campaign-id}

So I just need a way to find the IDs.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Employee

Re: List Deleted Email Campaigns

Hi,

 

It is by design that emails in the trash folders aren't returned in a get of the email campaigns in the API.  I can submit this as feedback since you would like deleted campaigns to be listed.  If you move the campaigns from the trash folder and do a get, you can find them (and their ID's).  Did you want you integration to show campaigns by category, including deleted campaigns?

 

Best Regards,

Shannon W.

API Support Specialist

View solution in original post

3 REPLIES 3
Highlighted
Employee

Re: List Deleted Email Campaigns

Hi,

 

It is by design that emails in the trash folders aren't returned in a get of the email campaigns in the API.  I can submit this as feedback since you would like deleted campaigns to be listed.  If you move the campaigns from the trash folder and do a get, you can find them (and their ID's).  Did you want you integration to show campaigns by category, including deleted campaigns?

 

Best Regards,

Shannon W.

API Support Specialist

View solution in original post

Highlighted
Occasional Advisor

Re: List Deleted Email Campaigns

Thanks Shannon.  It seems reasonable that deleted emails not be available but it would be nice to have.

 

If I were to request this ability I'd want one of the following options...

1) Return deleted campaigns with the rest in the campaigns collection but have a "Deleted" property set to true

or

2) Use a separate call to get deleted emails like...

https://api.constantcontact.com/ws/customers/{user-name}/campaigns?Deleted=true

Highlighted
Moderator

Re: List Deleted Email Campaigns

Thanks for the feedback Paul.  We're going to be releasing a new version of our API soon and, as part of that, we're looking at how we expose folder management for Email Campaigns in general, which would include the "Trash" folder.  Will definitely update the community once we have more information on this feature.  We won't likely launch with folder support but it is something we're hopeful to have support for shortly after launch.

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