Got a 'How do I' question? Join 'Ask a Trainer' Monday to Friday, 11am to 4pm ET for instant help and pro tips!

Where can I find campaign_activity_id

SamuelF543
Rookie
0 Votes

Hello team,

 

I'm testing Send Email test through this url: 

https://v3.developer.constantcontact.com/api_reference/index.html#!/Email_Scheduling/testSendCampaig...

Asking campaign_activity_id there. But I didn't campaign_activity_id.

Help me to find campaign_activity_id.

 

Thanks,

Samuel

14 REPLIES 14
Caleb_A
Employee
0 Votes

Hello Samuel,

 

My name is Caleb and I am a member of Constant Contact's API Developer Support Team.

 

In order to retrieve the campaign_activity_id for a given campaign you will first need to retrieve the campaign_id for the campaign. If you are unfamiliar with how to find this then you will want to first make GET request to the endpoint '/emails' which will retrieve the collection of email campaigns from your account. The response you receive from this request will provide you the campaign_id unique to each campaign which will be needed in order to make the next request.

 

GET a Collection of Email Campaigns:
https://developer.constantcontact.com/api_reference/index.html#!/Email_Campaigns/retrieveEmailCampai...

 

Once you have retrieved the campaign_id for the campaign you will then want to make a new GET request to the endpoint '/emails/{campaign_id}'. This request will return all of the campaign_activity_id's for the specified campaign (minimum of two activity ids). The default activity id's have a role of either 'primary email' or 'permalink' (it is possible that you may have more activity ids if the campaign has been resent to non openers). Out of these activity_ids you will only need the activity_id with a role of 'primary email'.

 

GET Details About a Single Email Campaign:
https://developer.constantcontact.com/api_reference/index.html#!/Email_Campaigns/retrieveEmailCampai...

 

After retrieving the correct campaign_activity_id with a role of 'primary email' you will then be prepared to make a request to the endpoint '/emails/activities/{campaign_activity_id}/tests' which will then allow you to send a test email to the associated email_address in the body of the request.

 

POST Test Send an Email Campaign Activity:
https://v3.developer.constantcontact.com/api_reference/index.html#!/Email_Scheduling/testSendCampaig...


Regards,

Caleb A.
API Support Specialist

Did I answer your question?
If so, please mark my post as an "Accepted Solution" by clicking the Accept as Solution button in the bottom right hand corner of this post.
AndrewW01963
Marketing Legend

I WORKED ALL DAY ON MY EMAIL AND THEN YOU DESTROYED IT:

 

Error getting campaign activity by activityId 24b23383-07ca-47b3-affb-5ea1d383216c: undefined

I received a similar error message, Error getting campaign activity by activityId 6def94d1-9967-4bd4-81a0-84c7802c6f53: undefined, when I tried to copy the last email that I sent.  I need to modify it and send it out at 7am in the morning.  Looks like that's not going to happen.  I hope this error has generated notification to an on-call production team who is currently working on this system issue and will resolve it soon.  hint hint Constant contact....

Courtney_E
Moderator
0 Votes

Hello KentG005,

 

Thank you for reaching out to Constant Contact API Developer Support. My team is here to assist outside software developers with questions about building into Constant Contact's API.

 

The error "Error getting campaign activity by activityId __: undefined" being received within the website UI is not related to Constant Contact's API.

 

I apologize for any inconvenience that this error has caused, and  have opened up a case with one of Constant Contact's Tier 2 customer support specialists so that they can follow up with you directly to verify whether you are still experiencing issues related to this error.

 

One of our Tier 2 support specialists should be in touch within 4 business days. Otherwise, for immediate assistance, or if you’d like a callback/email from them at a certain day/time you can call our support line at 866-289-2101 and reference case # 32012747.

 

Please have a look and let us know if you have any other questions!


Regards,

Courtney E.
Tier II API Support Engineer

Did I answer your question?
If so, please mark my post as an "Accepted Solution" by clicking the Accept as Solution button in the bottom right hand corner of this post.
Courtney_E
Moderator
0 Votes

Hello AndrewW01963,

 

Thank you for reaching out to Constant Contact API Developer Support. My team is here to assist outside software developers with questions about building into Constant Contact's API.

 

The error "Error getting campaign activity by activityId __: undefined" being received within the website UI is not related to Constant Contact's API.

 

I apologize for any inconvenience that this error has caused, and  have opened up a case with one of Constant Contact's Tier 2 customer support specialists so that they can follow up with you directly to verify whether you are still experiencing issues related to this error.

 

One of our Tier 2 support specialists should be in touch within 4 business days. Otherwise, for immediate assistance, or if you’d like a callback/email from them at a certain day/time you can call our support line at 866-289-2101 and reference case # 32012731.

 

Please have a look and let us know if you have any other questions!


Regards,

Courtney E.
Tier II API Support Engineer

Did I answer your question?
If so, please mark my post as an "Accepted Solution" by clicking the Accept as Solution button in the bottom right hand corner of this post.
DanielleF2369
Rookie

I got this too.....😯

Me too - of course support is off tomorrow 

 

Courtney_E
Moderator
0 Votes

Hello NFIvt30,

 

Thank you for reaching out to Constant Contact API Developer Support. My team is here to assist outside software developers with questions about building into Constant Contact's API.

 

The error "Error getting campaign activity by activityId __: undefined" being received within the website UI is not related to Constant Contact's API.

 

I apologize for any inconvenience that this error has caused, and  have opened up a case with one of Constant Contact's Tier 2 customer support specialists so that they can follow up with you directly to verify whether you are still experiencing issues related to this error.

 

One of our Tier 2 support specialists should be in touch within 4 business days. Otherwise, for immediate assistance, or if you’d like a callback/email from them at a certain day/time you can call our support line at 866-289-2101 and reference case # 32012758.

 

Please have a look and let us know if you have any other questions!


Regards,

Courtney E.
Tier II API Support Engineer

Did I answer your question?
If so, please mark my post as an "Accepted Solution" by clicking the Accept as Solution button in the bottom right hand corner of this post.
Courtney_E
Moderator
0 Votes

Hello DanielleF2369,

 

Thank you for reaching out to Constant Contact API Developer Support. My team is here to assist outside software developers with questions about building into Constant Contact's API.

 

The error "Error getting campaign activity by activityId __: undefined" being received within the website UI is not related to Constant Contact's API.

 

I apologize for any inconvenience that this error has caused, and  have opened up a case with one of Constant Contact's Tier 2 customer support specialists so that they can follow up with you directly to verify whether you are still experiencing issues related to this error.

 

One of our Tier 2 support specialists should be in touch within 4 business days. Otherwise, for immediate assistance, or if you’d like a callback/email from them at a certain day/time you can call our support line at 866-289-2101 and reference case # 32012755.

 

Please have a look and let us know if you have any other questions!


Regards,

Courtney E.
Tier II API Support Engineer

Did I answer your question?
If so, please mark my post as an "Accepted Solution" by clicking the Accept as Solution button in the bottom right hand corner of this post.
HBCleaves
Rookie

Happened to me also.

Courtney_E
Moderator
0 Votes

Hello HBCleaves,

 

Thank you for reaching out to Constant Contact API Developer Support. My team is here to assist outside software developers with questions about building into Constant Contact's API.

 

The error "Error getting campaign activity by activityId __: undefined" being received within the website UI is not related to Constant Contact's API.

 

I apologize for any inconvenience that this error has caused, and  have opened up a case with one of Constant Contact's Tier 2 customer support specialists so that they can follow up with you directly to verify whether you are still experiencing issues related to this error.

 

One of our Tier 2 support specialists should be in touch within 4 business days. Otherwise, for immediate assistance, or if you’d like a callback/email from them at a certain day/time you can call our support line at 866-289-2101 and reference case # 32012788.

 

Please have a look and let us know if you have any other questions!


Regards,

Courtney E.
Tier II API Support Engineer

Did I answer your question?
If so, please mark my post as an "Accepted Solution" by clicking the Accept as Solution button in the bottom right hand corner of this post.
DeannaD1
Constant Contact Partner

I'm having the same issue. I worked on this email all day and now I cannot open it!! Can someone from your support team please help those of us who are getting this error message? I have an email that needs to be completed by tomorrow (Monday, July 15th)!!!

Courtney_E
Moderator
0 Votes

Hello DeannaD1,

 

Thank you for reaching out to Constant Contact API Developer Support. My team is here to assist outside software developers with questions about building into Constant Contact's API.

 

The error "Error getting campaign activity by activityId __: undefined" being received within the website UI is not related to Constant Contact's API.

 

I apologize for any inconvenience that this error has caused, and  have opened up a case with one of Constant Contact's Tier 2 customer support specialists so that they can follow up with you directly to verify whether you are still experiencing issues related to this error.

 

One of our Tier 2 support specialists should be in touch within 4 business days. Otherwise, for immediate assistance, or if you’d like a callback/email from them at a certain day/time you can call our support line at 866-289-2101 and reference case # 32012807.

 

Please have a look and let us know if you have any other questions!


Regards,

Courtney E.
Tier II API Support Engineer

Did I answer your question?
If so, please mark my post as an "Accepted Solution" by clicking the Accept as Solution button in the bottom right hand corner of this post.
KentG005
Rookie
0 Votes

I logged in this morning and the error seems to have been resolved.  The campaign that I had copied was in my campaign list and I was able to edit and send.  

Resources
Developer Portal

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

Visit Page

Announcements

API Updates

Join our list to be notified of new features and updates to our V3 API.

Sign Up