c#.net meeting request cancellation
-
I am coding with C#.NET I created an meeting request and attached to the mail. users able to open it and accept the same. On another scenario, i want to decline the request. so i send an FRESH meeting request attached to the mail with same date & time. this time meeting request is not getting cancelled. So my question is, do the UID need to be unique to cancel the meeting request?
-
I am coding with C#.NET I created an meeting request and attached to the mail. users able to open it and accept the same. On another scenario, i want to decline the request. so i send an FRESH meeting request attached to the mail with same date & time. this time meeting request is not getting cancelled. So my question is, do the UID need to be unique to cancel the meeting request?
We don't know how you are implementing "meetings" so how can we possibly know?
-
We don't know how you are implementing "meetings" so how can we possibly know?
This is my code :
DateTime schBeginDate = TimeZoneInfo.ConvertTimeToUtc(Convert.ToDateTime(Convert.ToDateTime("21/08/2015").ToString("dd-MMM-yyyy") + " 12:00 AM")); DateTime schEndDate = TimeZoneInfo.ConvertTimeToUtc(Convert.ToDateTime(Convert.ToDateTime("21/08/2015").ToString("dd-MMM-yyyy") + " 11:59 PM"));
String[] contents = { "BEGIN:VCALENDAR","VERSION:2.0","PRODID:-//TEST","METHOD:REQUEST",
"BEGIN:VEVENT",
string.Format("DTSTART:{0:yyyyMMddTHHmmssZ}", schBeginDate),
string.Format("DTSTAMP:{0:yyyyMMddTHHmmssZ}", DateTime.UtcNow),
string.Format("DTEND:{0:yyyyMMddTHHmmssZ}", schEndDate),
"LOCATION:NA", "UID : " + Guid.NewGuid(),
"DESCRIPTION:Out Of Office",
"X-ALT-DESC;FMTTYPE=text/html:Out Of Office",
"SUMMARY:Out Of Office", "STATUS:CONFIRMED","ORGANIZER:MAILTO:" + "test@test.com",
string.Format("ATTENDEE;CN=\"{0}\";RSVP=TRUE:mailto:{1}", "test", "test@test.com"),
"BEGIN:VALARM","TRIGGER:-PT15M",
"ACTION:DISPLAY","DESCRIPTION:Reminder","X-MICROSOFT-CDO-BUSYSTATUS:OOF","END:VALARM",
"END:VEVENT", "END:VCALENDAR" }; -
This is my code :
DateTime schBeginDate = TimeZoneInfo.ConvertTimeToUtc(Convert.ToDateTime(Convert.ToDateTime("21/08/2015").ToString("dd-MMM-yyyy") + " 12:00 AM")); DateTime schEndDate = TimeZoneInfo.ConvertTimeToUtc(Convert.ToDateTime(Convert.ToDateTime("21/08/2015").ToString("dd-MMM-yyyy") + " 11:59 PM"));
String[] contents = { "BEGIN:VCALENDAR","VERSION:2.0","PRODID:-//TEST","METHOD:REQUEST",
"BEGIN:VEVENT",
string.Format("DTSTART:{0:yyyyMMddTHHmmssZ}", schBeginDate),
string.Format("DTSTAMP:{0:yyyyMMddTHHmmssZ}", DateTime.UtcNow),
string.Format("DTEND:{0:yyyyMMddTHHmmssZ}", schEndDate),
"LOCATION:NA", "UID : " + Guid.NewGuid(),
"DESCRIPTION:Out Of Office",
"X-ALT-DESC;FMTTYPE=text/html:Out Of Office",
"SUMMARY:Out Of Office", "STATUS:CONFIRMED","ORGANIZER:MAILTO:" + "test@test.com",
string.Format("ATTENDEE;CN=\"{0}\";RSVP=TRUE:mailto:{1}", "test", "test@test.com"),
"BEGIN:VALARM","TRIGGER:-PT15M",
"ACTION:DISPLAY","DESCRIPTION:Reminder","X-MICROSOFT-CDO-BUSYSTATUS:OOF","END:VALARM",
"END:VEVENT", "END:VCALENDAR" }; -
I did not try it myself but what I have read before, to able to cancel a meeting request the Method attribute must be Cancel and the UID must be the same as the original request.