Campaign issues

With campaign issues, you can choose your target audience, default email settings, design and content for your email campaign once and name it, for example My Monthly Campaign. Then every time you want to send an email campaign, for example January Email Campaign, you will end up in the last sent state of your campaign. From there you will be able to modify only the information you want for the new campaign, without starting from scratch. Delivering this increment of your campaign is what an issue is.

Because an issue contains everything required to be sent for the current state of the campaign, the issue class is the campaign class.

Campaign model class

The Campaign class has a property - RootCampaign that keeps the hierarchical structure of an issue (which is actually a campaign) related to a specific campaign.

Following is a sample of the RootCampaign property of the Campaign class:

C#
using System;
using Telerik.OpenAccess;
using Telerik.Sitefinity.Newsletters.Model;

namespace SitefinityWebApp
{
   public class MyNewCampaign : Campaign
   {
       [FieldAlias("rootCampaign")]
       public Campaign RootCampaign
       {
           get
           {
               return this.RootCampaign;
           }
           set
           {
               //if the new root campaign has a root campaign, it's an issue which cannot be set as root.
               if ((value != null) && (value.RootCampaign != null))
               {
                   throw new InvalidOperationException(string.Format("Campaign \"{0}\" with ID {1} is already an issue of another root campaign and cannot be set as root.",
                       value.Name,
                       value.Id.ToString()));
               }
               this.RootCampaign = value;
           }
       }
   }
}

This section contains

Create issues
Describers how to create new issues.
Query issues
Describes how to query new issues.
Modify issues
Describes how to modify existing issues.
Delete issues
Describes how to delete issues.
Want to learn more?
Enhance your Sitefinity skills by enrolling in free training sessions. Become Sitefinity certified through Progress Education Community to strengthen your professional credentials.
This Article Contains
New to Sitefinity?