How to create ics file that allow adding attendee on creation of Google calendar event - icalendar

I am trying to create an .ics for Google Calendar, but when I try to add this event to my Google Calendar using the file, there isn't anyone the event's attendee list.
VERSION:2.0
PRODID:-//PYVOBJECT//NONSGML Version 1//EN
BEGIN:VEVENT
UID:20191205T041804Z - 44748#odoo-vagrant
DTSTART:20200103T140000Z
DTEND:20200103T150000Z
ATTENDEE:MAILTO:dang.nguyen#novobi.com
ATTENDEE:MAILTO:admin#yourcompany.example.com
CREATED:20191205T041803Z
DESCRIPTION:Phone: (098) 159-4793\nEmail: dang.nguyen#novobi.com\n
DTSTAMP:20191205T041804Z
LOCATION:https://zoom.us/j/308566271
ORGANIZER:MAILTO:admin#yourcompany.example.com
SUMMARY:Odoo Accounting with Dang Nguyen
BEGIN:VALARM
ACTION:AUDIO
DESCRIPTION:15 Minute(s)\, by e-mail
TRIGGER;RELATED=START:PT15M
END:VALARM
END:VEVENT
END:VCALENDAR
Can anyone help me with this issue ?

Related

Google calendar events are being recreated after deleting them. using ICS attachment

I am using ICS email attachments to create events and sync google calendar.
the events are created fine, But if I delete them and enter the gmail inbox, it is recreating the events.
the only workaround that works for me is to delete the emails with the attachments from inbox and trash.
Is that a known google calendar bug, or there is something I can change with my ICS file to solve this?
This is the ICS file I use:
BEGIN:VCALENDAR
VERSION:2.0
PRODID:test-62fa4e2def6bf246cd4a3e52
METHOD:REQUEST
UID:cal-order-62fa4e2def6bf246cd4a3e52
BEGIN:VEVENT
SUMMARY:test test
DTSTART;TZID=Asia/Jerusalem;VALUE=DATE-TIME:20220816T100000
DTEND;TZID=Asia/Jerusalem;VALUE=DATE-TIME:20220816T113000
UID:order-62fa4e2def6bf246cd4a3e52
SEQUENCE:0
ATTENDEE;PARTSTAT=ACCEPTED;ROLE=REQ-PARTICIPANT:MAILTO:test#gmail.com
DESCRIPTION:Number of persons: 2\nDuration: 1hr 30min\nPrice: 750 \n
\nFirst name: \nLast name: \nEmail: test#gmail.com\nPho
ne: 0543098138
LOCATION:Test Harbor
NAME:Test Glass - 62fa4e2def6bf246cd4a3e52
ORGANIZER;CN=Test:MAILTO:test2#gmail.com
END:VEVENT
END:VCALENDAR

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

ics event update failed in web calendar

I am trying to create a ics feed for users to subscribe via webcal. The feed's content comes from database and looks like the following.
When the database is updated, the feed changes and updates the subscribers' calendars. It works fine with google calendar and some calendar apps. However, I never observe updates in outlook.com (the web calendar) or Yahoo calendar. Is there something wrong in the feed so update fail?
The feed is provided through webcal://example.com/subscribe.php
and I put header('Content-Type: text/calendar; charset=UTF-8');
as the first PHP line
ics:
BEGIN:VCALENDAR
PRODID:-//Organisation//Roster//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:PUBLISH
X-WR-CALNAME:Duty Arrangement
X-WR-CALDESC:Duty Arrangement
X-WR-TIMEZONE:Asia/Hong_Kong
REFRESH-INTERVAL;VALUE=DURATION:PT6H
X-PUBLISHED-TTL:PT6H
BEGIN:VEVENT
DTSTART:20180218T020000Z
DTEND:20180218T033000Z
DTSTAMP:20180602T144036Z
UID:228Mip5LyZ5JqY5#organisation.com
DESCRIPTION:Task A
LOCATION:Office
SUMMARY:On Duty
TRANSP:OPAQUE
END:VEVENT
BEGIN:VEVENT
DTSTART:20180304T020000Z
DTEND:20180304T033000Z
DTSTAMP:20180602T144036Z
UID:230Mip5LyZ5JqY5#organisation.com
DESCRIPTION:Task B
LOCATION:Office
SUMMARY:On Duty
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR
You have the UID but ICS file events need a SEQUENCE number to indicate which update/version of the event is the latest.
See the specification https://www.rfc-editor.org/rfc/rfc5545#section-3.8.7.4
For recurring event instances, they also need a RECURRENCE-ID of the instance being modified.

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.

What is wrong with this iCal event?

I'm generating an ics file from calendar information and google calendar can show these. But a few events doesn't show up, for example this one: (one event extracted from the full file)
BEGIN:VCALENDAR
PRODID:-//tt.megy.se//CalendarExporter V0.1//SE
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:PUBLISH
X-WR-CALNAME:Tick-Tack
BEGIN:VEVENT
DTSTAMP:20120116T095000Z
LAST-MODIFIED:20120116T095000Z
CREATED:20120116T095000Z
SEQUENCE:1
DTSTART:20120116T095000Z
DTEND:20120116T104000Z
UID:Lesson20120116T095000ZLu111D#tt.megy.se
SUMMARY:Lunch
LOCATION:.
URL:http://tt.megy.se
DESCRIPTION:.
CLASS:PUBLIC
STATUS:CONFIRMED
END:VEVENT
END:VCALENDAR
I have checked the above at http://severinghaus.org/projects/icv/ and it validates. Does anyone have any idea why this specific event wouldn't show up in an iCal consumer, for example google calendar.
Any help is appreciated.
I was able to "import" it into a test google calendar with no problem.
In my experience, "subscribing" via google calendar can be slow - ie it may not show up for a while.