Google Calendar not have attachments when creating event from .ics file - calendar

I am creating calendar event by sending ics file through email. Ics file contains attachments like below.
BEGIN:VCALENDAR
BEGIN:VEVENT
SUMMARY:Test
DTSTART;VALUE=DATE-TIME:20220325T080000Z
DTEND;VALUE=DATE-TIME:20220325T100000Z
UID:e5437cc3-0145-457f-a244-37cce703dda0
ATTACH;ENCODING=BASE64;VALUE=BINARY;X-FILENAME=sample.pdf:<base64_data>
LOCATION:London\, UK
ORGANIZER;CN="CN TEXT";ROLE="ROLE ADMIN":MAILTO:<mail_to>
END:VEVENT
END:VCALENDAR
When adding to calendar, Outlook Calendar works fine but the event on Google Calendar does not have the attachments.
I also tried but still
ATTACH;FILENAME="sample.pdf";FMTTYPE=application/pdf:https://drive.google.com/<file>
Thank you for any help

Related

ical4J: make Outlook appointment info and actions display in emails

I am using ical4j (version 3.0.1) to send an email to an Outlook email address (Office 365). Here is what I see in an email:
You can see the Calendar.ics attachment and clicking on the down arrow allows you to add the event to your Outlook calendar. This works, but not good as the following one.
When I create an appointment in Outlook for someone, I can directly see the appointment info and action buttons (Accept, etc.) in the email, as shown below.
How can I do it through ical4j?
Update 1:
Due to Arnaud's input, I have made my code work by adding the following line:
icsCalendar.getProperties().add(Method.REQUEST);
and updating this link:
messageBodyPart.setDataHandler(new DataHandler(new ByteArrayDataSource(icsCalendar.toString(), "text/calendar; charset=\"utf-8\"; method=REQUEST")));
Your description does not include the icalendar stream so it is not possible to check whether all mandatory properties are present in the invitation.
Assuming that everything is fine with the REQUEST, you must then follow certain rules when constructing your email message. See Multipart email with text and calendar: Outlook doesn't recognize ics

Given ics VALARM properies are not appearing in Google Calendar or Outlook

I'm not able to find a solution or answer to this question because there appears to be a lot developers out there experiencing it.
I'm generating an ics file but the VALARMS are not setting reminders in google calendar or outlook 2007.
My ics file looks like:
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20180719T094000Z
DTEND:20180719T104000Z
DTSTAMP:20180718T094001Z
RRULE:FREQ=DAILY
UID:bhanu#shinycreek.com
ORGANIZER;CN=bhanu#shinycreek.com:mailto:bhanu#shinycreek.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=shrikant#shinycreek.com;X-NUM-GUESTS=0:mailto:shrikant#shinycreek.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=johndoe_gemsessence#outlook.com;X-NUM-GUESTS=0:mailto:johndoe_gemsessence#outlook.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE;CN=bhanu#shinycreek.com;X-NUM-GUESTS=0:mailto:bhanu#shinycreek.com
CREATED:20180718T094001Z
DESCRIPTION:This is a meeting invitation for testing of invitation sent by email.
LAST-MODIFIED:20180718T094001Z
LOCATION:Indore, Madhya Pradesh
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:Calender invitation for testing
TRANSP:OPAQUE
BEGIN:VALARM
TRIGGER:-P30M
DESCRIPTION:Event reminder
ACTION:EMAIL
END:VALARM
END:VEVENT
END:VCALENDAR
The google calender is ignoring my given VALARMS and displaying it's default 10 minutes before under alarm section.
I'm not getting any reason why the google and calender ignoring valarms.
Please help me if having any solution to fix this.
Thanks in advance.

Do I have to always append to an ics file? Or can I only publish upcoming events?

If I publish a .ics file for purposes of being subscribed to by a calendar application (Google, Outlook, etc), do I have to keep events that have passed? Or can I only include upcoming events?
The ICS file doesn't require old events be kept. If you delete old events from the ICS file, they would cease to exist in the user's calendar, since the ICS file is distinctly separate from the recipients calendar. Most users would probably be comfortable displaying events only going forward.

Subscribe / import multiple ICS files into 1

Does anyone know of a way to use something like Google Calendar to subscribe to multiple ICS calendar feeds so that I can create a new calendar with the ability to grab it's ICS feed so that all the events in Calendar A and Calendar B (as supplied via ICS feeds into the new Google Calendar) will appear together?
I need the new calendar to poll the feeding ICS files and not do a hard single import function.
E.g. I want a way of creating a new MASTER calendar which is feed by multiple existing ones via ICS feeds.
I managed to add multiple ICSs by following this method:
I sent an email to my gmail account and included in it a bunch of ICS files as attachments.
I opened the email inside gmail and hit an option of adding to calendar.
All done!

Outlook not showing the events after subscribing the Ical

I am providing the ICal URL to my users so that they can subscribe this Ical in their Outlook.
But after the subscription, Outlook not showing the events from my web calender. It doesn't giving me any errors too. It simply displaying 'Last successful update: 6/20/2013 9:32 AM'.
How to debug this issue? Does Outlook will take some more time to subscribe the events?
Example Ical Url:
https://domain.com/user_token/basic.ical

Resources