none
Add RSS Feed to Outlook RRS feed

  • Question

  • I can't believe that I can't find the answer to this question floating around anywhere but alas I've exhausted as much searching as I can muster. All that I am looking to do is add an RSS feed to Outlook using .net.  I've examined the MAPI item of current folders representing RSS feeds and looked at SyndicationItems and several other resources and can't really figure out how Outlook is adding a feed.  The only method that I have found that is effective thus far is:

    System.Diagnostics.Process.Start("iexplore.exe", "outlookfeed://intranet/index.php/feed")

    I would rather not start from Outlook and call Internet Explorer to call Outlook again and add a feed.  Any help would be greatly appreciated.  I thought this would be an extremely simple task that has taken entirely too long.

    Thank You.

    Thursday, February 7, 2013 7:28 PM

Answers

  • A co-worker ended up digging up this thread which had a code snippet showing how to add an RSS feed (below). Note: I had tried the OpenSharedFolder method previously but was using an http:// which does work through the Outlook interface but will throw an error through the OpenSharedFolder method.

    Public sub AddRSS_byCode

    Dim myApplication As New Outlook.Application
    Dim feedUrl As String = "feed://www.nu.nl/feeds/rss/algemeen.rss%23"
    Dim myMAPInameSpace As Outlook.NameSpace = myApplication.GetNamespace("MAPI")
    Dim ImportRSS As Outlook.Folder
    ImportRSS = myMAPInameSpace.OpenSharedFolder(feedUrl, "Nu.nl RSS", True, True)

    End sub


     
    • Marked as answer by MikeKLH Thursday, February 7, 2013 7:52 PM
    Thursday, February 7, 2013 7:52 PM

All replies

  • A co-worker ended up digging up this thread which had a code snippet showing how to add an RSS feed (below). Note: I had tried the OpenSharedFolder method previously but was using an http:// which does work through the Outlook interface but will throw an error through the OpenSharedFolder method.

    Public sub AddRSS_byCode

    Dim myApplication As New Outlook.Application
    Dim feedUrl As String = "feed://www.nu.nl/feeds/rss/algemeen.rss%23"
    Dim myMAPInameSpace As Outlook.NameSpace = myApplication.GetNamespace("MAPI")
    Dim ImportRSS As Outlook.Folder
    ImportRSS = myMAPInameSpace.OpenSharedFolder(feedUrl, "Nu.nl RSS", True, True)

    End sub


     
    • Marked as answer by MikeKLH Thursday, February 7, 2013 7:52 PM
    Thursday, February 7, 2013 7:52 PM
  • You can also use the RDORssFeeds object in Redemption - http://www.dimastr.com/redemption/rdorssfeeds.htm

    It will let you customize the RSS feed quite a bit, including its name, target folder, etc.


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.4 is now available!


    Thursday, February 7, 2013 8:49 PM