Hi,
I am currently working on linking the Kentico newsletters and issues with a custom .net application, and was wondering if it possible to get all the issues from one newsletter using the Kentico API.
I am able to load all the information about a Kentico newsletter using the below code:
Dim newsletter = CMS.Newsletter.NewsletterInfoProvider.GetNewsletterInfo("NewsletterName", siteId)
But can not see a way of getting all the issues for this newsletter.
Cheers
Andy
Have you checked out the Newsletter API docs? You should be able to use the IssueInfo and IssueInfoProvider to gather that information based on the Newsletter.
IssueInfo
IssueInfoProvider
Hi Brenden,
Thank you, I have managed to do it using the following code:
Dim newsletter = CMS.Newsletter.NewsletterInfoProvider.GetNewsletterInfo("NewsletterName", siteId) For Each i As IssueInfo In newsletter.Children.All Next
Ok so are you still having problems?
Please, sign in to be able to submit a new answer.