Reading all Issues within a Newsletter using the Kentico API

Direct Tech asked on April 27, 2015 17:48

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

Recent Answers


Brenden Kehren answered on April 27, 2015 18:21

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.

1 votesVote for this answer Mark as a Correct answer

Direct Tech answered on April 28, 2015 10:15

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

Cheers

Andy

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on April 28, 2015 14:00

Ok so are you still having problems?

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.