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.
Related
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.
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
I am having issues getting the right syntax for an all day event which spans multiple days. Here is my ICAL event:
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//http://XXX//Event
METHOD:PUBLISH
BEGIN:VEVENT
DTSTART;TZID="America/Chicago";VALUE=DATE:20150809
DTEND;TZID="America/Chicago";VALUE=DATE:20150812
SUMMARY:Event Name
DESCRIPTION:Event Description
LOCATION:Event Location
END:VEVENT
END:VCALENDAR
Shows up great in Mac Calendar:
But in Outlook, it starts at 1AM and isn't marked as all day:
From what I just tested, it seems that Outlook does not allow all-day ICAL events to have a timezone specified. Seems stupid, but changing the file to this made it work:
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//http://XXX//Event
METHOD:PUBLISH
BEGIN:VEVENT
DTSTART;VALUE=DATE:20150809
DTEND;VALUE=DATE:20150812
SUMMARY:Event Name
DESCRIPTION:Event Description
LOCATION:Event Location
END:VEVENT
END:VCALENDAR
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.
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