473,320 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 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,
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
0 1221

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

Similar topics

1
by: Clark | last post by:
I am trying to send a meeting request from vb.net and I have tried using this example. ---------------------------...
1
by: Jordan Bruce | last post by:
******************************************************* ONTARIO CANADA INFORMIX USER GROUP (OCIUG) http://www.iiug.org/ociug NEXT MEETING: WEDNESDAY, JULY 14...
2
by: Kamyk | last post by:
Hello all! I have created a function in VB which generate appointment in Outlook. Everything is OK, except one thing. I cannot send it automatically using a button in Access, because I don`t...
1
by: Owen | last post by:
Hello, I am working on a project that required to implement sending meeting requests with an attachment. I have researched many posts from web, but I cannot see any one talking about how to...
0
by: mark.kishel | last post by:
I would like to send an meeting request via email similar to google calendar using asp.net(VB). I have attached the ics file but it still shows up as an attachment, outlook will not recognize it...
6
by: Rushwire | last post by:
Does anybody know how to send a meeting request using an ics/vcs (VCalendar) attachment from an asp.net page. I don't want my users to have to double click on the attachment but rather that it is...
0
by: Mike Driscoll | last post by:
Hi, The next Iowa Python Users Group (AKA Pyowa) is nearly upon us. We will be meeting November 3rd, from 7-9 p.m. at the following location: Marshall County Sheriff's Office 2369 Jessup Ave...
5
by: wktarin | last post by:
Hi. I'm a relative newcomer to the world of php, and I keep bumping into a problem with a mail () form. I need to send an automatic email to two addresses, but I can't seem to get it to work. One...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.