Click or drag to resize
CampaignControllerLaunch Method
The method launches a campaign. This includes the following steps:
  • Campaign will start tracking data
  • All linked page assets will be published
  • All linked email assets will be sent
Doesn't launch an already launched campaign or a campaign from a different site.

Namespace: CMS.WebAnalytics
Assembly: CMS.WebAnalytics (in CMS.WebAnalytics.dll) Version: 9.0.0
Syntax
C#
public CampaignEditViewModel Launch(
	int id
)

Parameters

id
Type: SystemInt32
Campaign id

Return Value

Type: CampaignEditViewModel
Remarks
When pages are published DocumentPublishFrom is set to Now. Also DocumentPublishTo is reset if date is set to past. Furthermore, pages under workflow are left untouched and all culture variants are published.
See Also