locked
Link events from different calendars with the same meeting workspace RRS feed

  • Question

  • Hi

    Is it possible to link events from different calendars to the same meeting workspace?

    With this code I can link an event with a meeting workspace:

    Code Snippet
    SPSite site = new SPSite("SharePointURL");
    SPWeb web = site.OpenWeb();
    SPList list = web.Lists["List Name"];
    SPListItem item = list.GetItemByID(ItemId); // Get the list item however you need to, it doesn't have to be get item by ID
     
    SPWeb eventWeb = web.Webs["Web Name or Guid of the event workspace"];
     
    SPMeeting meeting = SPMeeting.GetMeetingInformation(eventWeb);
    meeting.LinkWithEvent(web, list.ID.ToString(), item.ID, "WorkspaceLink", "Workspace");



    but if I do the same thing on another calendar, so that I can have the same event on different calendars, and all linked with the same meeting workspace, I get an error.

    Should be possible.
    Can someone help?

    Thanks

    Tuesday, April 8, 2008 10:30 AM