Logo 
Search:

MOSS Forum

Ask Question   UnAnswered
Home » Forum » MOSS       RSS Feeds

"Connect to Outlook" from a Calendar List in MOSS

  Asked By: Nicholas    Date: May 04    Category: MOSS    Views: 1177

I have created a calendar list within MOSS and have used the "Connect
to Outlook" from this calendar list. I have created an Outlook Add-
In and can catch a new event that is being pushed from MOSS. MOSS
appears to be sending a IPM.AppointmentItem object (one of the
standard Outlook calendar items). I have created additional columns
of data that is stored within the MOSS calendar list that I want to
be pushed to Outlook from MOSS. Is there a way to include these
additional columns of data stored with each MOSS calendar item that
is being pushed to Outlook?

If so ... how can this be done?


Also I have tried to do this manually (see code) but the item never
appears in MOSS calendar list.. do you see something wrong?

public void AddItemToCalendar(InfoSet infoSet, MSEvent
msEvent)
{
try
{
SPSite site = new SPSite(infoSet.SharePointSiteUrl);
SPWeb web = site.OpenWeb();

if (web != null)
{
SPList calendarList = web.Lists
[infoSet.SharePointListname];
if (calendarList != null)
{
SPListItem MOSSItem = calendarList.Items.Add
();

if (MOSSItem != null)
{
MOSSItem["Title"] =
msEvent.details.EventName;
MOSSItem["Event"] =
msEvent.details.EventName;
MOSSItem["Location"] =
msEvent.details.Location;
MOSSItem["Description"] =
msEvent.description.Description;
MOSSItem["Primary Contact"] =
msEvent.details.EventManger;
MOSSItem["Start Time"] =
msEvent.details.StartDate;
MOSSItem["End Time"] =
msEvent.details.EndDate;
MOSSItem["Website"] =
msEvent.details.WebSite;
MOSSItem["Keynote Speaker"] =
msEvent.details.KeySpeaker;
MOSSItem["Business Owner"] =
msEvent.details.BusinessOwner;
MOSSItem["Est Attendance"] =
msEvent.details.EstAttendance;

calendarList.Update();
}
}
}
site.Dispose();
web.Dispose();
}
catch (System.Exception ex)
{
Log.WriteToLog("MOSSList.AddItemToCalendar(..)
error: " + ex.Message, System.Diagnostics.EventLogEntryType.Error);
}
}

The code runs without error; the item just never appears in the MOSS
calendar list.

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on "Connect to Outlook" from a Calendar List in MOSS Or get search suggestion and latest updates.




Tagged: