Process Mapping Logo

Process Mapping - Forums

Sharing 19 years of knowledge and experience

 
Metastorm BPM forums
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
JoeOmerta

Veteran
Registered:
Posts: 210
Reply with quote  #1 
Is there a way to send an outlook calendar invite using Metastorm?  Whether it be using the built in email(not likely) or server script.
0
ryansaul

Member
Registered:
Posts: 16
Reply with quote  #2 
I used JavaScript to get this working; however it does require Outlook to be open in the background for this to work.
Below is the code I have on a hidden button which is triggered on form exit :

document.getElementById('cmdMeetingRequest').click();
---------------------------------------
When button pressed:

strBody = eworkGetField("memBody", "");

strTo = eworkGetField("txtTo", "");

strCC = eworkGetField("memClientCC", "");

strSubject = eworkGetField("memSubject", "");

strDateStart = eworkGetField("dtmDateStart", "");

strDateEnd = eworkGetField("dtmDateEnd", "");

strLocation = eworkGetField("txtLocation", "");

 

var objOL = new ActiveXObject("Outlook.Application");

var objappt = objOL.CreateItem(1);

objappt.MeetingStatus = 1;

objappt.RequiredAttendees = strTo;

objappt.OptionalAttendees = strCC;

objappt.Subject = strSubject;

objappt.Body = strBody;

objappt.Start = strDateStart;

objappt.End = strDateEnd;

objappt.Location = strLocation;

objappt.Display();

0
ryansaul

Member
Registered:
Posts: 16
Reply with quote  #3 
Also to note; that I could never get HTML working with the invite; only plaintext as the body.
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:


Create your own forum with Website Toolbox!