471,050 Members | 1,099 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,050 software developers and data experts.

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,
username, password);

oApp.DataSource.SaveTo(href, oCn,
username, password);

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

Any help would be greatly appreciated!
May 6 '07 #1
0 1129

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 leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.