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.

Campaign has different status returned in API than in the webapp UI

Highlighted
Visitor

Campaign has different status returned in API than in the webapp UI

When I list campaigns from the "emailmarketing/campaigns" endpoint, it shows one campaign with a SCHEDULED status that has actually been deleted, and shows correctly as deleted in the webapp. Any ideas?

2 REPLIES 2
Highlighted
Honored Contributor

Re: Campaign has different status returned in API than in the webapp UI

Hello,

 

After a quick look at this, it appears that you ended up with a campaign that was deleted while it was still in a scheduled state. This did prevent the email from being sent, but appears to not have fully updated the status of the campaign. In this case, the best work-around is to jump into the UI and temporarily restore the campaign in order to move it from Scheduled status to draft status. Once you've done that, you can again move it to deleted in the UI.

 

In this case, the API was simply reporting what it was in the database, which was a result of this status not being set correctly.

 

Regarding the campaign being stuck in a scheduled state even after being deleted, I will be looking into that a bit further so that we can take steps to ensure that it does not happen again.

 

If you have any questions, please let me know!

 

Sincerely,

Elijah G.
API Support Engineer
Highlighted
Visitor

Re: Campaign has different status returned in API than in the webapp UI

Thanks for the quick reply and excellent explanation!

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