Unknown Date/Time Error when creating an Email Campaign Activity Schedule

TylerA400
Rookie
0 Votes

I am trying to connect my Zapier automation to Constant Contact but I keep receiving this error message (that I've rigorously tried figuring out): "Campaign Email Schedule Date is null or empty, please include a valid schedule date with this request" I've tried many times using correct ISO-8601 format, and I've also tried just using "0" (with and without quotations) to perform this POST action but the error keeps happening. Another possibility of this issue is ensuring that the email campaign that the activity ID I am pointing to does not have the "primary_email" role, but I am unsure how to create a campaign that does so. I included the exact output from Zapier below with the error message I'm receiving. Please let me know what I should do or if you have any suggestions, thank you. request request Request Method method POST Request Url url https://api.cc.email/v3/emails/activities/94c012fd-06fe-41ad-b0d7-9bfb0cd47ebb/schedules Request Querystring querystring headers headers Request Headers Content Type Content-Type application/json Request Body body {"scheduled_date_time":"\"0\""} data data Request Data Scheduled Date Time scheduled_date_time "0" response response Response Status status 400 headers headers Response Body body [{"error_key":"validation.error.schedule.date.empty","error_message":"Campaign Email Schedule Date is null or empty, please include a valid schedule date with this request"}] data data 1 0 error_key error_key validation.error.schedule.date.empty error_message error_message Campaign Email Schedule Date is null or empty, please include a valid schedule date with this request

1 REPLY 1
Aarron_G
Moderator
0 Votes
Hello @TylerA400 ,

Thank you for reaching out to Constant Contact API Developer Support.

I can confirm that, at least for the example given, there isn't an issue with the campaign_activity_id you're using - the referenced activity does have the primary_email role. The issue instead appears to be with the name of the property in your request body. The property name should be "scheduled_date", rather than "scheduled_date_time". If you still experience issues after modifying the property name, please let us know.

Regards,

Aarron G.
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.
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