i'm having issues in sending icalender update to host of the meeting. here i have paste both two of my calender.ics files.
First invitation, with publish method is working and adding to the calender without any issues. But when i send the second email as a update with new attendees(using REQUEST), its not updating with my first calender invitation in outlook.
First Invitation
BEGIN:VCALENDAR
PRODID:-//Microsoft Corporation//Outlook 15.0 MIMEDIR//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:PUBLISH
STATUS:Testbooking
X-MS-OLK-FORCEINSPECTOROPEN:TRUE
BEGIN:VEVENT
CLASS:PUBLIC
CREATED:20140916T060318Z
DESCRIPTION:
DTEND:20140916T090037Z
DTSTAMP:20140916T060320Z
DTSTART:20140916T083037Z
LAST-MODIFIED:20140916T060320Z
LOCATION:Chai Chee - Oasis.Oasis.4th Floor.Celebes
ORGANIZER;CN=Marlen Brayan:mailto:pasan#ecyber.com
PRIORITY:5
SEQUENCE:1
SUMMARY;LANGUAGE=en-us:Testbooking
TRANSP:OPAQUE
UID:events.ivivaworks.com_FB_Booking_48
X-ALT-DESC;FMTTYPE=text/html:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">\n<HTML>\n<HEAD>\n
<META NAME="Generator" CONTENT="MS Exchange Server version rmj.rmm.rup.rpr">\n<TITLE></TITLE>\n
</HEAD>\n<BODY>\n<!-- Converted from text/rtf format -->\n\n<P DIR=LTR><SPAN LANG="en-us">
<FONT FACE="Calibri">
</FONT></SPAN><SPAN LANG="en-us"></SPAN></P>\n\n</BODY>\n</HTML>
X-MICROSOFT-CDO-BUSYSTATUS:BUSY
X-MICROSOFT-CDO-IMPORTANCE:1
X-MICROSOFT-DISALLOW-COUNTER:FALSE
X-MS-OLK-AUTOFILLLOCATION:FALSE
X-MS-OLK-CONFTYPE:0
BEGIN:VALARM
TRIGGER:-PT15M
ACTION:DISPLAY
DESCRIPTION:Reminder
END:VALARM
END:VEVENT
END:VCALENDAR
Second Invitation
BEGIN:VCALENDAR
PRODID:-//Microsoft Corporation//Outlook 15.0 MIMEDIR//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
STATUS:Testbooking
X-MS-OLK-FORCEINSPECTOROPEN:TRUE
BEGIN:VEVENT
ATTENDEE;ROLE=REQ-PARTICIPANT;CN="Frederic Reboulleau";RSVP=TRUE:mailto:frederic.reboulleau#orange.com
ATTENDEE;ROLE=REQ-PARTICIPANT;CN="pasan fernando";RSVP=TRUE:mailto:i.pasan#yahoo.com
CLASS:PUBLIC
CREATED:20140916T060318Z
DESCRIPTION:
DTEND:20140916T090037Z
DTSTAMP:20140916T061357Z
DTSTART:20140916T083037Z
LAST-MODIFIED:20140916T061357Z
LOCATION:Chai Chee - Oasis.Oasis.4th Floor.Celebes
ORGANIZER;CN=Marlen Brayan:mailto:pasan#ecyber.com
PRIORITY:5
SEQUENCE:4
SUMMARY;LANGUAGE=en-us:Testbooking
TRANSP:OPAQUE
UID:events.ivivaworks.com_FB_Booking_48
X-ALT-DESC;FMTTYPE=text/html:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">\n<HTML>\n<HEAD>\n
<META NAME="Generator" CONTENT="MS Exchange Server version rmj.rmm.rup.rpr">\n<TITLE></TITLE>\n
</HEAD>\n<BODY>\n<!-- Converted from text/rtf format -->\n\n<P DIR=LTR><SPAN LANG="en-us">
<FONT FACE="Calibri">
</FONT></SPAN><SPAN LANG="en-us"></SPAN></P>\n\n</BODY>\n</HTML>
X-MICROSOFT-CDO-BUSYSTATUS:BUSY
X-MICROSOFT-CDO-IMPORTANCE:1
X-MICROSOFT-DISALLOW-COUNTER:FALSE
X-MS-OLK-AUTOFILLLOCATION:FALSE
X-MS-OLK-CONFTYPE:0
BEGIN:VALARM
TRIGGER:-PT15M
ACTION:DISPLAY
DESCRIPTION:Reminder
END:VALARM
END:VEVENT
END:VCALENDAR
![enter image description here][1]
This is how second invitation shows in outlook. it shows as no response required. but its not updating with first email too. am i doing anything wrong in formatting of ics file?
There's no obvious problem. Your file passes the online validator. Your UIDs are the same. Your sequence number advances, though it should be 0 in the first invitation.
In general, Outlook is very picky, and the only approach that works I find is to copy exactly a working example. Use Gmail to generate an invitation, then modify the event and resend from Gmail. Note exactly how the second invitation is processed by Outlook. Do you need to preview the invitation to provoke the calendar update? Use Gmail "show original" to inspect and copy exactly the structure of the Icalendar, including the order of fields.
Related
exchange API not letting me add attachment to an event using ics file as mime stream.
I contacted Microsoft support for above query and they told it's not implemented yet to create attachment from ics import.
You can create event using ics file but attachment will not be created.
For exchange API's:
So to create attachment to an event we have to first create event using ics import
and then create attachment to event in different call.
Create events as shown above, to create attachments you can use this API:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:RequestServerVersion Version="Exchange2010_SP2" />
<t:ExchangeImpersonation>
<t:ConnectingSID>
<t:PrimarySmtpAddress>%s</t:PrimarySmtpAddress>
</t:ConnectingSID>
</t:ExchangeImpersonation>
<t:TimeZoneContext>
<t:TimeZoneDefinition Id="Central Standard Time" />
</t:TimeZoneContext>
</soap:Header>
<soap:Body>
<m:CreateAttachment>
<m:ParentItemId Id="%s" ChangeKey="%s"/>
<m:Attachments>
<t:FileAttachment>
<t:Name>%s</t:Name>
<t:Content>%s</t:Content>
</t:FileAttachment>
</m:Attachments>
</m:CreateAttachment>
</soap:Body>
</soap:Envelope>'''%(email_id, item_id, change_key, file_name, attahcment_data)
item_id - event id comes in response while creating event
change_key - this also we will receive in create event response
Send this post request to "https://outlook.office365.com/EWS/Exchange.asmx"
This will create file attachments only for item attachment i have to try it.
I have a Windows App developed with Cordova. I registered it with my Windows Developer Account and got my token etc. Now when I send a push message (toast) via Fiddler to the App, which is currently installed on an Windows Phone 8.1, I receive the Notification on the Phone just fine - but it only says 'New Notification'.
I used this xml for the message:
<?xml version="1.0" encoding="utf-8"?>
<wp:Notification xmlns:wp="WPNotification">
<wp:Toast>
<wp:Text1>Test Message</wp:Text1>
<wp:Text2>XXX</wp:Text2>
</wp:Toast>
</wp:Notification>
However, neither Text1 nor Text2 show up in my notification.
How can I implement the toast notification to actually use the content from the push notification?
Since my application is written in Angular JS, I can not use any C# documentations on the topic.
Any help with this problem would be much appreciated.
Thanks in advance!
It looks like you're using the MPNS format for toasts, but trying to push using WNS (I assume). Make sure you use the WNS toast format, documented here. Your toast should be formatted something like this:
<toast>
<visual>
<binding template="ToastText02">
<text id="1">Test Message</text>
<text id="2">XXX</text>
</binding>
</visual>
</toast>
I am trying to set up an email with an .ics file attached. I also want the body of the message to contain a small amount of HTML formatting (a single line coloured red).
I have got all of this set up properly, and all seems to be working on various other mail programs (gmail, mac Mail). However in Outlook (specifically Outlook 2013 on Win10) it fails to render the colour.
If I send an identical message without the .ics attachment, all renders fine.
I have a feeling this may be a 'feature' of Outlook that when showing a calendar preview for the .ics file it won't show anything that might detract from their wonderful preview pane (like some important text that has been rendered in red to make sure people have seen it); but is there something I'm missing?
Full code from the email below:
------=_Part_732_741500152.1445600688123
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit
<html>
<p>Dear Jazzer,</p>
<p style="font-weight:bold">This is some bold text</p>
<p style="color:red">This is some red text</p></html>
------=_Part_732_741500152.1445600688123
Content-Type: text/calendar; method=request; name="Test Learning Event.ics"
Content-Transfer-Encoding: 7bit
BEGIN:VCALENDAR
PRODID:-//Microsoft Corporation//Outlook 15.0 MIMEDIR//EN
VERSION:2.0
METHOD:REQUEST
X-MS-OLK-FORCEINSPECTOROPEN:TRUE
BEGIN:VEVENT
UID:a14L0000001ufrEIAQ
CLASS:PUBLIC
SUMMARY:Test Entry
LOCATION:Bristol,UK
DESCRIPTION:test
CREATED:20151023T114447Z
DTSTART:20151022T140000Z
DTEND:20151023T120000Z
DTSTAMP:20151023T114447Z
LAST-MODIFIED:20151023T114447Z
PRIORITY:5
SEQUENCE:1
TRANSP:OPAQUE
X-MICROSOFT-CDO-BUSYSTATUS:OOF
X-MICROSOFT-CDO-INTENDEDSTATUS:OOF
X-MICROSOFT-CDO-IMPORTANCE:1
X-MICROSOFT-DISALLOW-COUNTER:FALSE
X-MS-OLK-AUTOFILLLOCATION:FALSE
X-MS-OLK-CONFTYPE:0
END:VEVENT
END:VCALENDAR
------=_Part_732_741500152.1445600688123--
Create a MIME message of type text/calendar (just a single MIME part) and populate it with the contents of your ICS file. HTML formatting must be added to the X-ALT-DESC iCal header with an extra attribute FMTTYPE=text/html:
X-ALT-DESC;FMTTYPE=text/html:<html>\n
<p>Dear Jazzer,</p>\n
<p style="font-weight:bold">This is some bold text</p>\n
<p style="color:red">This is some red text</p></html>
Replace the following with your Description.
DESCRIPTION:test
X-ALT-DESC;FMTTYPE=text/html:<html><font face="Arial,sans-serif";>test<br><br></font></html>
I use this code to create all day event on Exchange 2010sp1:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<soap:Header>
<t:RequestServerVersion Version="Exchange2007_SP1"/>
</soap:Header>
<soap:Body>
<CreateItem xmlns="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" SendMeetingInvitations="SendToAllAndSaveCopy">
<SavedItemFolderId>
<t:DistinguishedFolderId Id="calendar"/>
</SavedItemFolderId>
<Items>
<t:CalendarItem xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
<Subject>test event</Subject>
<Body BodyType="Text">my test event</Body>
<ReminderIsSet>false</ReminderIsSet>
<Start>2011-01-06T07:00:00Z</Start>
<End>2011-01-06T08:00:00Z</End>
<IsAllDayEvent>true</IsAllDayEvent>
<Location>test location</Location>
<t:MeetingTimeZone>
<t:BaseOffset>-PT2H</t:BaseOffset>
<t:Standard>
<t:Offset>P0D</t:Offset>
<t:RelativeYearlyRecurrence>
<t:DaysOfWeek>Sunday</t:DaysOfWeek>
<t:DayOfWeekIndex>Second</t:DayOfWeekIndex>
<t:Month>September</t:Month>
</t:RelativeYearlyRecurrence>
<t:Time>01:59:59</t:Time>
</t:Standard>
<t:Daylight>
<t:Offset>-PT1H</t:Offset>
<t:RelativeYearlyRecurrence>
<t:DaysOfWeek>Friday</t:DaysOfWeek>
<t:DayOfWeekIndex>First</t:DayOfWeekIndex>
<t:Month>April</t:Month>
</t:RelativeYearlyRecurrence>
<t:Time>03:00:00</t:Time>
</t:Daylight>
</t:MeetingTimeZone>
</t:CalendarItem>
</Items>
</CreateItem>
</soap:Body>
</soap:Envelope>
The meeting that get created spans over 2 days,
I checked the timezone and locale on the client and server machines and they are correct,
Using the same code one 2010 and 2007 works correctly.
This issue was verified on another separate environment.
Any help or direction will be appreciated.
Thanks,
Eli
Check http://calendarservermigration.blogspot.com/2010/12/ews-outlook-live-exchange-release.html where they describe of a similar problem. I have the same problem using the Exchange Web Services Managed API 1.1 library on Exchange 2010 as well as Exchange 2010 SP1.
I currently use new ExchangeService(ExchangeVersion.Exchange2007_SP1, TimeZoneInfo.Utc) when I connect to either Exchange Server 2007 or Exchange Server 2010 and it seems to work fine (if you don't require functionality that's available since Exchange Server 2010).
Im using Exchange 2010, using <RequestServerVersion Version="Exchange2010_SP1"> gives me an error indicating MeetingTimeZone is deprecated, use StartTimeZone and/or EndTimeZone instead.
See my explanation here Exchange 2010 Web Services - creation of an all day event appointment as to why its spanning 2 days.
The issue was fixed by MS (after we reported them this issue), they reported it now fixed on Exchange2010 sp2.
I am trying to create, update and delete an event in Outlook 2007 (but optimally it would work for all versions). Creating and deleting the event is working fine. I followed several threads but for some reason the update action failed.
When I double click on the ICS file, Outlook opens a window and the only choice I have is to delete. But the event it wants to delete is not the old one but the new one (even if it's not created yet). So when I click delete the old event remains here.
The UID is the same, sequence has been increase by 1, DTSTAMP in newer.
First event:
BEGIN:VCALENDAR
PRODID:-//Blatant Media Corporation//Absorb LMS//EN
VERSION:2.0
METHOD:PUBLISH
BEGIN:VEVENT
CLASS:PUBLIC
DTSTART;VALUE=DATE-TIME:20101111T13000000Z
DTEND;VALUE=DATE-TIME:20101111T14000000Z
UID:AbsorbClass150180
DESCRIPTION:A nov session for demoing only\n\nVenue:\nBoardroom 123\n\nInstructor:\nMike Owens\n\nCourse Description:\nInstructor Led Training (ILT) topic: First Aid\n\n------------------\nAbsorb Anywhere\nhttp://www.absorbtraining.com
LOCATION:Boardroom 123
SUMMARY:First Aid: Nov
DTSTAMP:20101107T15353400Z
LAST-MODIFIED:20101107T15353400Z
STATUS:CONFIRMED
SEQUENCE:0
END:VEVENT
END:VCALENDAR
Updated event:
BEGIN:VCALENDAR
PRODID:-//Blatant Media Corporation//Absorb LMS//EN
VERSION:2.0
METHOd:REQUEST
BEGIN:VEVENT
CLASS:PUBLIC
DTSTART;VALUE=DATE-TIME:20101111T15000000Z
DTEND;VALUE=DATE-TIME:20101111T16000000Z
UID:AbsorbClass150180
DESCRIPTION:A nov session for demoing only\n\nVenue:\nBoardroom 123\n\nInstructor:\nMike Owens\n\nCourse Description:\nInstructor Led Training (ILT) topic: First Aid\n\n------------------\nAbsorb Anywhere\nhttp://www.absorbtraining.com
LOCATION:Boardroom 123
SUMMARY:First Aid: Nov
DTSTAMP:20101108T15353400Z
LAST-MODIFIED:20101108T15353400Z
ORGANIZER:Owens
SEQUENCE:1
END:VEVENT
END:VCALENDAR
Add the following to both files:
ORGANIZER:donotreply#test.com
not sure why, but you can't seem to update events without this.