Make an ICS

From SMTX Wiki
Jump to navigation Jump to search

First, make the 'text File', that can be done under 'General Settings' of a process (see the new section 'text files on that page). This is a new feature in SSP 7.1 ! There is difference in the format, it depends on the fact if the start and end data are fomr a normal date, or from a date-time - field!

When editing the text file enter this (in both cases) :

Extension : .ics
Content type: text/calendar

Content : event with start & end date + hour & minute
!! When adding in the dates (&times) don't forget to map the field with dateformat !!!
In this case : yyyyMMddTHHmmss

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//SSP
BEGIN:VEVENT
DTSTART:#REPLACE-FORMFIELD-starttime-yyyyMMddTHHmmss#
DTEND:#REPLACE-FORMFIELD-endtime-yyyyMMddTHHmmss#
SUMMARY:#REPLACE-FORMFIELD-subject#
LOCATION:#REPLACE-FORMFIELD-Location#
DESCRIPTION:#REPLACE-EXTAPPFIELD-MeetingCenter-AgendaItemsSummaryPlain#
END:VEVENT
END:VCALENDAR

Note : the data starting/ending with # are dynamically filled, with data from the form or process

Note2: DESCRIPTION is the main copy of the invitation, it does NOT accept HTML !


Event that only has start and end day (without hours):
Daily event:

Note : when you only send through a date, the ICS file assumes it is 00.00 (start of the day).
So if you do 1/1/2015 to 1/2/2015 (from Jan 1 to jan 2, 2015), the ICS file will hold only 1 day !!
Tip is to add a day in the form :) - see the seperate wiki on how to calculate with dates.

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//SSP
BEGIN:VEVENT
DTSTART;VALUE=DATE:20140214
DTEND;VALUE=DATE:20140216
SUMMARY:This is a daily test event
LOCATION:Some place
END:VEVENT
END:VCALENDAR

Note : the data starting/ending with # are dynamically filled, with data from the form or process

Now, you can email this text file as a dynamic attachment, when setting the email.
The first field is the filename you want to give to the .ics file, the second is where you would enter the ics file itself, by selecting 'text files' in the first dropdown.
The second dropdown will then display all available text files.



CATEGORIES:enter categories here, comma separated

below the LOCATION definition

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//SSP
BEGIN:VEVENT
DTSTART:#REPLACE-FORMFIELD-EventFrom-yyyyMMddTHHmmss#
DTEND:#REPLACE-FORMFIELD-EventTo-yyyyMMddTHHmmss#
SUMMARY:#REPLACE-FORMFIELD-EventSubject#
LOCATION:#REPLACE-FORMFIELD-EventLocation#
CATEGORIES:#REPLACE-FORMFIELD-EventCategory#
END:VEVENT
END:VCALENDAR


These are the Categorie,s as defined in Outlook. You can not pass on a color, but only a category-name (or multiple, using comma-seperations).
Outlook will match the Category to the color that he knows for it.


to seperate different lines in DESCRIPTION, just use \n , like here:

    DESCRIPTION:Line 01\nLine 02\n