Sending Mail with Calender Appointment from IBM BPM
Approach:
Create an ".ics " file using the teamworks "write Text file" connector, to some temporary location. Now send a mail with the ".ics" file as an attachment.On opening the file from outlook, the outlook calender appointment console will be opened and one can accept or Decline the appointment.If accepted the appointment will be added to the outlook calender.
![]() |
Outlook mail Image |
![]() |
Calender Appointment console |
What should be content of the '.ics' file ?
You can find the ".ics" file full specs here.
Below block is the sample content for creating an .ics file.
************************************************************************
BEGIN:VCALENDAR
BEGIN:VEVENT
ATTENDEE;PARTSTAT=NEEDS-ACTION:MAILTO:sample@xxx.com
UID: sample@xxx.com
DTSTAMP: 05/10/2013
ORGANIZER: pradeep@xxx.com
DTSTART: 05/11/2013 10:20:20
DTEND: 05/11/2013 11:20:20
SUMMARY: This mail is to test the appointment
DESCRIPTION: This mail is to test the appointment
LOCATION: India
BEGIN:VALARM
TRIGGER:-PT15M
REPEAT:3
DURATION:PT5M
ACTION:DISPLAY
DESCRIPTION:This mail is to test the appointment
END:VALARM
END:VEVENT
END:VCALENDAR
************************************************************************
An ics file with above content will create an apointment with the summary and description as above, with a start date time of "05/11/2013 10:20:20" and end date time of "05/11/2013 11:20:20", with an alarm trigger at 15 minutes before the meeting starts and alarm will snooze every 5 min untill the meeting commences.
How to send Mail from BPM?
One can use the java connector "Email Send Teamworks Email" from the system toolkit to send the email, by providing the file location, to and from mail address,subject, SMTP host etc.
No comments:
Post a Comment