Definition managers
Version:
Definition managers are used to get, create, search, activate, and delete marketing activities.
Get definition manager in a Sitecore context
The following example demonstrates how to retrieve the IGoalDefinitionManager in a Sitecore context:
Construct definition manager in a non-Sitecore context
The following example demonstrates how to construct the AutomationPlanDefinitionManager in a non-Sitecore context using the Reference Data Service as a repository.
Note
You must add a xdb.referencedata.client connection string to the application’s ConnectionStrings.config file that points to the Reference Data Service end point - for example, https://refdata/.