file .ics to delete appointment not recognized by outlook - icalendar

I send a icalendar when a user create an appointment on my application and the file ics is regularly recognized by outlook.
If the user delete the appointment on my application i send a icalendar with canceled notation, but the .ics file is not recognized (not supported calendar message.ics)
Icalendar which create the appointment on outlook (regular recognized):
BEGIN:VCALENDAR
PRODID:-//Schedule a Meeting
VERSION:2.0
METHOD:CANCEL
BEGIN:VEVENT
DTSTART:20190718T033000Z
DTSTAMP:20190718T113347Z
DTEND:20190718T040000Z
LOCATION:
UID:Tesis10910
DESCRIPTION:
X-ALT-DESC;FMTTYPE=text/html:
SUMMARY:
STATUS:CANCELLED
ORGANIZER:MAILTO:fc#newteamsoftware.com
ATTENDEE;CN="fc#newteamsoftware.com";ROLE=REQ-PARTICIPANT;RSVP=TRUE:mailto:fc#newteamsoftware.com
BEGIN:VALARM
TRIGGER:-PT15M
ACTION:DISPLAY
DESCRIPTION:Reminder
END:VALARM
END:VEVENT
END:VCALENDAR
Icalendar which delete the appointment:
BEGIN:VCALENDAR
PRODID:-//Schedule a Meeting
VERSION:2.0
METHOD:CANCEL
BEGIN:VEVENT
DTSTART:20190718T033000Z
DTSTAMP:20190718T113347Z
DTEND:20190718T040000Z
LOCATION:
UID:Tesis10911
DESCRIPTION:
X-ALT-DESC;FMTTYPE=text/html:
SUMMARY:
STATUS:CANCELLED
ORGANIZER:MAILTO:fc#newteamsoftware.com
ATTENDEE;CN="fc#newteamsoftware.com";ROLE=REQ-PARTICIPANT;RSVP=TRUE:mailto:fc#newteamsoftware.com
BEGIN:VALARM
TRIGGER:-PT15M
ACTION:DISPLAY
DESCRIPTION:Reminder
END:VALARM
END:VEVENT
END:VCALENDAR

Few things:
don't know if it is intended but your first iMIP message already has a METHOD:CANCEL instead of REQUEST.
your second iMIP message has a different UID. If this is really what you are sending, it is normal for the client not to recognise it as the cancel of the first message.
Your second message lacks a SEQUENCE property with an increased value. See https://www.rfc-editor.org/rfc/rfc5546#section-3.2.5
there is no point in adding the VALARM component. Clients will always ignore it.

Related

I can't get my recurring events identified in google calendar

i'm using ICAL.js to crearte a recurring events, when I import the .ics file on my phone, it adds only one event!
this is the .ics file, what's the problem?
BEGIN:VCALENDAR
CALSCALE:GREGORIAN
PRODID:-//Qu Studioc.//Timetable//EN
VERSION:2.0
BEGIN:VEVENT
FREQ:WEEKLY
BYDAY:SU,TU
SUMMARY:ESP102\n16121-training
UID:ESP1020
DTSTART:20190630T025448
DURATION:PT100M
DTSTAMP:20190704T025448
UNTIL:20200102T000000Z
END:VEVENT
BEGIN:VEVENT
FREQ:WEEKLY
BYDAY:SU,TU
SUMMARY:ESP102\n16121-training
UID:ESP1021
DTSTART:20190630T025448
DURATION:PT100M
DTSTAMP:20190704T025448
UNTIL:20200102T000000Z
END:VEVENT
END:VCALENDAR
thank you.
An RRULE must actually be specified - the FREQ should be part of the RRULE not standalone
The ietf.org site is not responding for me now, try
https://icalendar.org/iCalendar-RFC-5545/3-8-5-3-recurrence-rule.html

Multiple entry in google calendar with same ics file

I am trying to a event and send invite through ics file. I have create a ics file.My ics file is below.
BEGIN:VCALENDAR
VERSION:2.0
METHOD:REQUEST
PRODID:-//PYVOBJECT//NONSGML Version 1//EN
BEGIN:VEVENT
UID:test#1324
DTSTART:20160518T144218
DTEND:20160518T154218
CLASS:PUBLIC
DESCRIPTION:Test
LOCATION:New Delhi
ORGANIZER:amankumar0511#gmail.com
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:Test
END:VEVENT
END:VCALENDAR
on clicking it two times. It creates two entry in the calendar. It should update the existing entry.

VALARM in .ics file

This is the .ics file generated from my C# code and this successfully opens in Outlook and shows the reminder too.
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//hacksw/handcal//NONSGML v1.0//EN
BEGIN:VEVENT
DTSTART:20131022T130000Z
DTEND:20131023T140000Z
SUMMARY:22Demo1
DESCRIPTION:first demo
LOCATION:Ald
BEGIN:VALARM
TRIGGER:-PT10M
ACTION:DISPLAY
END:VALARM
END:VEVENT
END:VCALENDAR
But when i change the time and supply start time= 09:00 and end time= 10:00 then the .ics file generated is
as below and no reminder in this case is entered when it is opened in Outlook.
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//hacksw/handcal//NONSGML v1.0//EN
BEGIN:VEVENT
DTSTART:20131022T100000Z
DTEND:20131023T110000Z
SUMMARY:22Demo1
DESCRIPTION:first demo
LOCATION:Ald
BEGIN:VALARM
TRIGGER:-PT10M
ACTION:DISPLAY
END:VALARM
END:VEVENT
END:VCALENDAR
Finally I observed that if the time is given from 13:00 (1:00PM)to 23:00(10:00PM) it is working fine and reminder is added but if i enter time like 09:00(AM) or 11:00(AM) then reminder is not added.
Pls tell where i am going wrong or what i am missing.
In the second case your appointment starts in the past (the first will also soon be in the past) and Outlook will not set a reminder in the past.

Valarm not working in icalendar when it has multiple events

Am using following Icalendar code to set multiple events in a single ics file... But when i tested it with outlook 2007, the remainder sets to none.
BEGIN:VCALENDAR
PRODID:- //Microsoft Corporation//Outlook 9.0 MIMEDIR//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:PUBLISH
BEGIN:VEVENT
DTSTART:20120130T121000Z
DTEND:20120130T131000Z
UID:1620111121T075424707955
DTSTAMP:20111121T075424
DESCRIPTION;ENCODING=QUOTED-PRINTABLE:some descritption for event
TRANSP:OPAQUE
SUMMARY:Summary
PRIORITY:5
CLASS:PUBLIC
BEGIN:VALARM
DESCRIPTION:Some description for alarm
TRIGGER;RELATED=START:-PT30H
ACTION:DISPLAY
END:VALARM
END:VEVENT
BEGIN:VEVENT
DTSTART:20120201T233800Z
DTEND:20120202T003800Z
UID:1620111121T075424707955
DTSTAMP:20111121T075424
DESCRIPTION;ENCODING=QUOTED-PRINTABLE:some descritption for event
TRANSP:OPAQUE
SUMMARY: Summary
PRIORITY:5
CLASS:PUBLIC
BEGIN:VALARM
DESCRIPTION:Some description for alarm
TRIGGER;RELATED=START:-PT30H
ACTION:DISPLAY
END:VALARM
END:VEVENT
END:VCALENDAR
When I use same format with only one event it is working fine... Help me in resolving this issue.
It seems that reminders in calendar feeds are not supported by Outlook due to its design. Which is unfortunate because the feature is rendered nearly useless without something as basic as reminders.
The only way we were able to get reminders working was taking a calendar item from a feed, and then dragging it into one's personal calendar in Outlook. Not an effective, practical workaround at all.

With .ics files can I delete old events?

Im currently working on an .ics export from our application.
Can I somehow delete old events, so in my first import into outlook I have 152 events and during my second import I only have 100 events. Then I would like the import to automatically delete all 52 events from Outlook, is this possible?
I know that I can make events canceled, but that is not what I want.
For me it worked by setting the X-WR-RELCALID tag in the header of the ics file. Then Outlook recognized the event as the same. Also set METHOD:CANCEL in the header and STATUS:CANCELLED in VEVENT. Like this:
This ics to create the event:
BEGIN:VCALENDAR
VERSION:2.0
PRODID:http://www.example.com/example/
X-WR-RELCALID:ABC
METHOD:PUBLISH
BEGIN:VEVENT
UID:ThisIsTheUID
SEQUENCE:0
ORGANIZER;CN="Mustermann, Max":MAILTO:max#mustermann.com
SUMMARY:Eine Kurzinfo
DESCRIPTION:Beschreibung des Termines
CLASS:PUBLIC
TRANSP:TRANSPARENT
DTSTART:20110804
DTEND:20110805
DTSTAMP:20110804
END:VEVENT
END:VCALENDAR
This ics to cancel/remove the event:
BEGIN:VCALENDAR
VERSION:2.0
PRODID:http://www.example.com/example/
X-WR-RELCALID:ABC
METHOD:CANCEL
BEGIN:VEVENT
UID:ThisIsTheUID
SEQUENCE:2
ORGANIZER;CN="Mustermann, Max":MAILTO:max#mustermann.com
SUMMARY:Eine Kurzinfo
DESCRIPTION:Beschreibung des Termines
CLASS:PUBLIC
TRANSP:TRANSPARENT
DTSTART:20110804
DTEND:20110805
DTSTAMP:20110804
STATUS:CANCELLED
END:VEVENT
END:VCALENDAR