Query A/B test campaigns

To find a specific AB campaign, you use the NewslettersManager class. The following code finds an AB campaign with the specified ID through the Native API.


First, you initialize the NewslettersManager. Then, you call GetABCampaigns to retrieve all AB campaigns. Finally, you filter the campaigns based on the Id property.

NOTE:  You can filter by any of the ABCampaign properties.

Another way is to use the GetABCampaign method of the manager class:


NOTE: If no AB campaign with the specified ID exists, the GetABCampaign method throwsTelerik.Sitefinity.SitefinityExceptions.ItemNotFoundException exception.

Want to learn more?

Sign up for our free beginner training. Boost your credentials through advanced courses and certification.
Register for Sitefinity training and certification.

Was this article helpful?