Отвечено Update an already updated calendar occurence item

  • Sunday, April 29, 2012 2:41 AM
     
     

    Thanks in advance...

    I have found enormous examples on how to update an recurring occurence.

    But I am looking for some help on how to update an already updated occurence.

    Any help?

    - Natalie


    - Butterfly

All Replies

  • Tuesday, May 01, 2012 3:58 AM
     
     

    Hello,

    Try to syncronize SharePoint calendar into Outlook. Then, you can update the SharePoint calendar in calendar to make changes to the recurring occurrence item. The updated calendar will be syncronized to the SharePoint site.

    For more informaiton about how to view and update SharePoint calendar in Outlook, check this:

    http://office.microsoft.com/en-us/outlook-help/view-and-update-a-sharepoint-calendar-HA010354986.aspx

    Best Regards,

    Sally Tang

  • Thursday, May 03, 2012 2:39 PM
     
     

    Sally,

    I was trying to do it programmatically and not using UI.

    - Natalie.


    - Butterfly

  • Sunday, July 08, 2012 4:46 AM
     
     Answered Has Code
    An already updated occurrence item will have a new ID. So, the first thing you need to do is pass the ID and get the list item instance. Once you get it, you can set the following items as shown below and you should be good.
    listItem["UID"] = // this is the parent UID - doesnt change in the course of recurrence item (GUID).
    listItem["EventDate"] = // Pass the occurrence start date / time
    listItem["EventType"] = 4;  // Always 4 for update
    listItem["MasterSeriesItemID"] = // It is the parent item id
    listItem["RecurrenceID"] = // this is the event date last updated date. since in your case its already updated, query the one last updated and pass it )
    listItem["fRecurrence"] = 1;
    listItem["Duration"] = // your appointment item duration * 60;   
    listItem["EndDate"] = // pass the occurrence end date /time
    listItem["fAllDayEvent"] = // Is all day event or not (1 or 0)                         
    listItem["TimeZone"] = // What ever is the time zone.
    listItem["RecurrenceData"] = // Updated Recurrence Data. eg., Every 1 day(s) etc
    


    Srini Sistla Twitter: @srinisistla Blog: http://blog.srinisistla.com