none
Question about recurrecing meeting RRS feed

  • Question

  • Hi,all,

    Is there any way to get starttime of current valid recurrecing meeting?

    For example, I create a serials recurrencing meeting, from 2011-1-1 to 2011-1-5, one meeting for each day. And then I cancel the meeting on 2011-1-1, so how can I get the first valid meeting now, I mean, how can I know  the starttime of current first meeting in code?

    Thanks a lot. 

    Monday, November 12, 2012 9:42 AM

Answers

  • on RecurrencePattern there is a method - getOccurance - it will return you items that correspond to specific single occurances in meeting series - of course you have to pass proper date as a parameter, if you feel really lazy you could just start from patternstart date and in loop adding single day checking if you get back error or valid appointmentitem.
    Tuesday, November 13, 2012 9:34 AM

All replies

  • you could try 2 options (i guess there are more but only 2 come to my mind right now):

    1. use Items collection on calendar folder and IncludeRecurrences = true to find first 'occuring' event of your meeting series

    2. use GetRecurrencePattern.GetOccurance and pass manually calculated dates (or go day by day) and get single occurances and check them against Exceptions collection to see if they are not cancelled

    Monday, November 12, 2012 2:56 PM
  • So you mean that RecurrecePattern has no property to take a record of the current valid meeting?

    If user didn't change any property of recurrecing meeting, the exception collection would be zero. so how can I get the inforation in this situation?

    Pattern has two property PatternStartdate and Starttime, I don't very understand about Starttime, manual say that "starttime is only valid for appointment".

    Tuesday, November 13, 2012 8:41 AM
  • on RecurrencePattern there is a method - getOccurance - it will return you items that correspond to specific single occurances in meeting series - of course you have to pass proper date as a parameter, if you feel really lazy you could just start from patternstart date and in loop adding single day checking if you get back error or valid appointmentitem.
    Tuesday, November 13, 2012 9:34 AM