Hi there,
I'm using the C# sample code to see how to launch a Campaign. Using the sample code, the campaign is launched. However, when I go in my web browser to that campaign, it says that the campaign "You didn't complete all the pre-launch steps...". Apparently the scheduled step is not set.
this is the C# code that is being used:
Code:
createEmailCampaignArgs objeCampaignArgs = new createEmailCampaignArgs();
EmailCampaign objeCampaign = new EmailCampaign();
objeCampaign.name = strName;
objeCampaign.type = strType ;
objeCampaign.template_id = iTemplateID ;
objeCampaign.from_label = strFromLabel;
objeCampaign.mail_date = Convert.ToDateTime (DateTime.Now.ToString("s")); //Date should be in ISO 8601 format
objeCampaign.send_friend = true;
objeCampaign.redirect_url = strRedirectURL;
objeCampaign.template_idSpecified = true;
objeCampaign.contents = objeCampaignContent;
//Set required parameters.
objeCampaignArgs.session_id = _sSessionId;
objeCampaignArgs.email_campaign = objeCampaign;
//Try to create the campaign.
iCampaignID = objVR.createEmailCampaign(objeCampaignArgs);
I'm looking to be able to fully launch a campaign from the API.
Thanks, colin