RDOItems GetActivitiesForTimeRange() function in outlook addin development C#.Net

In this post we will discuss about GetActivitiesForTimeRange() function in outlook add-in development C#.Net. Also, you can check out my previous posts on:
GetActivitiesForTimeRange is a method that returns calendar meeting items between the specified date range in C#.Net API. Here is a sample you can follow for reference.
RDOAppointmentItem mitem = null;
RDOSessionClass session = new RDOSessionClass();
               session.Logon(“”, “”, false, false, null, false);
               RDOFolder2 folder = (RDOFolder2)session.
GetDefaultFolder( rdoDefaultFolders. olFolderCalendar);
               RDOItems items = folder. GetActivitiesForTimeRange( StartDate.Date, StartDate.Date.AddDays(1), true);
               foreach (object item in items)
                   mitem = item as RDOAppointmentItem;
          //You can also check whether the item is a recurring item or not.
                   if (mitem.IsRecurring)
                       //You can do whatever you want.
Check out Best Alternative to InfoPath -> Try Now


New to Office 365 SharePoint Online? Get Office 365 Enterprise E3 Subscription & Try out all the features

(Installation & Features)

About Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

View all posts by Bijay Kumar →