Quantcast
Channel: Developer to developer
Viewing all articles
Browse latest Browse all 9076

Create new promotion campaign in initialization module. SalesCampaignFolder.CampaignRoot is null.

$
0
0

I am trying to create a new campaign for a new promotion in a initialization module, but every time I try to run it, SalesCampaignFolder.CampaignRoot is null. Below is my current code.

_contentRepository = ServiceLocator.Current.GetInstance<IContentRepository>();
_campaign = _contentRepository.GetDefault<SalesCampaign>(SalesCampaignFolder.CampaignRoot);

Thanks for any help.


Viewing all articles
Browse latest Browse all 9076

Trending Articles