Working with campaign templates programmatically
The topic describes how to work with marketing automation campaign templates programmatically.
Campaign templates are managed by Sitecore.Marketing.Automation.Definitions.AutomationCampaignTemplates.AutomationCampaignTemplateDefinitionManager
class. They are stored in the master database under the following path:
/sitecore/system/Marketing Control Panel/Marketing Automation Templates managed by the Sitecore.Marketing.Automation.Definitions.AutomationCampaignTemplates.AutomationCampaignTemplateDefinitionManager
class
Task |
|
Code |
---|---|---|
Access the automation campaign template manager. The |
Constructor Injection |
RequestResponse
|
ServiceLocator |
RequestResponse
| |
Define an automation campaign template. |
Automation campaign templates and automation campaigns share the same structure and implement the | |
Save an automation campaign template. |
RequestResponse
| |
Update an existing automation campaign template. |
RequestResponse
| |
Delete an automation campaign template. |
RequestResponse
| |
Retrieve an automation campaign template. |
RequestResponse
| |
Retrieve an automation campaign template using an alias. |
RequestResponse
| |
Retrieve all automation campaign templates. |
RequestResponse
|
You cannot activate an automation campaign template programatically. If the ActivateAsync method of the the AutomationCampaignTemplateDefinitionManager
is called, or if the the SaveAsync is called and the activate parameter is set to true, a NotSupportedException occurs.