Search code examples
lotus-noteslotusscript

Creating an .ics calendar invitation with LotusScript


Use case: Send an invitation to an event using a .ics file and using preferably LotusScript.

Code is in a classic Domino Web application (you know, $$WebObscureHiddenField), business logic in in LotusScript, and I'm not too keen on writing anything else.

I've found the RFC which defines the format https://icalendar.org/RFC-Specifications/iCalendar-RFC-5545/ it seems straightforward to just write a text file following those conventions and then just attach it.

I've seen a similar question on SO, and Thorsten Link suggested to fill-in an 'Appointment' form with the relevant fields, but that seems sort of 'dirty' to me.

What's the best practice here?


Solution

  • One way would be to have a java servlet implement something like ical4j or other ics libraries which would then dynamically generate the ics.

    Other approach I used for sending ics files was to write the necessary fields into a n ics file and attach it to the mail.