467,880 Members | 1,255 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,880 developers. It's quick & easy.

C# - Problem Sending Meeting Updates with CDO

I am having a hard time sending meeting updates to attendees. I can
get the updated meeting to save to the organizer's calendar, but then
when I send it the meeting is sent to the attendee as a new meeting
instead of an update (It seems that Exchange assigns a new UID when
the Save method is called, so the attendees' calendar can't link it
with the original UID?!). If I try to send without saving first, the
old meeting is sent instead of the update.

Here is a sample of the code:

string sURL = "http://localhost/Exchange/" + username + "/calendar";

ADODB.Connection oCn = new ADODB.Connection();
oCn.Provider = "exoledb.datasource";

oCn.Open(sURL, username, password, 0);

CDO.Appointment oApp = new CDO.Appointment();
//Set updated Fields
oApp = ConvertVEItoCDOAppointment(appt, oCn, username, password, sURL, false);

//Get URL location of oApp
string UID = oApp.Fields["urn:schemas:calendar:uid"].Value.ToString();
string href = GetExistingAppointmentHrefFromUID(UID, oCn, username);

oApp.DataSource.Open(href, oCn,
ADODB.ConnectModeEnum.adModeReadWrite,
ADODB.RecordCreateOptionsEnum.adFailIfNotExists,
ADODB.RecordOpenOptionsEnum.adOpenSource,
username, password);

oApp.DataSource.SaveTo(href, oCn,
ADODB.ConnectModeEnum.adModeReadWrite,
ADODB.RecordCreateOptionsEnum.adCreateOverwrite,
ADODB.RecordOpenOptionsEnum.adOpenSource,
username, password);

CDO.ICalendarMessage iCalMsg = (CDO.ICalendarMessage)oApp.CreateRequest();
iCalMsg.Message.Send();

Any help would be greatly appreciated!
May 6 '07 #1
  • viewed: 1032
Share:

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Clark | last post: by
reply views Thread by mark.kishel | last post: by
reply views Thread by Mike Driscoll | last post: by
reply views Thread by MrMoon | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.