00Shunya
00Shunya

Reputation: 85

Cronofy ics file smart invite not working

Hi I am using cronofy smart invites to create ics calendar file for scheduling meetings in my java applications but when I cancel the meeting the ics file is not supported by outlook its working fine for google and other clients.

the cancel ics file content is :


Event iCalendar in cancel :-
 "BEGIN:
VCALENDAR
VERSION:2.0
PRODID:-//Cronofy//Cronofy0.1//EN
CALSCALE:GREGORIAN
METHOD:CANCEL
BEGIN:VEVENT
DTSTAMP:20200629T133045Z
UID:uid>@invite.cronofy.com
DTSTART:20200709T053000Z
DTEND:20200709T063000Z
DESCRIPTION:Calender test
LAST-MODIFIED:20200629T133000Z
LOCATION:Test Loaction\\, USA
ORGANIZER;CN=cooksmart Notification:mailto:[email protected]
SEQUENCE:4
STATUS:CANCELLED
SUMMARY:Calender test
TRANSP:OPAQUE
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;X-NUM-GUESTS=0:mailto:<myEmailId>
END:VEVENT
END:VCALENDAR"
 
Event iCalender in create :- 
"BEGIN:
VCALENDAR
VERSION:2.0
PRODID:-//Cronofy//Cronofy 0.1//EN
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTAMP:20200629T133014Z
UID:<uid>@invite.cronofy.com
DTSTART:20200709T053000Z
DTEND:20200709T063000Z
DESCRIPTION:Calender test
LAST-MODIFIED:20200629T133000Z
LOCATION:Test Loaction, USA
ORGANIZER;CN=cooksmart Notification:mailto:[email protected]
SEQUENCE:3
STATUS:CONFIRMED
SUMMARY:Calender test
TRANSP:OPAQUE
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;X-NUM -GUESTS=0;RSVP=TRUE:mailto:<myEmailId>
END:VEVENT
END:VCALENDAR"


I have added header as

request.setHeader("Content-Class", "urn:content-  classes:calendarmessage");
request.setHeader("Content-ID", "calendar_message");


Upvotes: 1

Views: 268

Answers (1)

Adam Whittingham
Adam Whittingham

Reputation: 11

The ICS content looks valid, so it could be the format of the email it's attached to.

The iMIP best practices describe the best structure for iCalendar attachments to ensure they can be parsed by most email clients. Using that structure should help Outlook parse the email and attached ICS.

Edit: It's also worth looking at the Cronofy documentation about sending invites for some code examples, or contacting Cronofy support directly.

Upvotes: 0

Related Questions