May 18, 2022 / by Prashant Gupta / In /

Pega Outlook Integration for Meeting Request

This article explains how we can integrate outlook with a pega application. Using this we should be able to send meeting invites to customers on their outlook from a pega application.

Business Requirement

Send outlook meeting request from a Pega Application. Integration with O365 to set up a meeting request by sending an email to the customer’s email address.

Solution Approach

Pega outlook integration is achieved by configuring the Outlook add-in component for Pega application. As a pre requisite, “Verifying third-party cookies” needs to be enabled for the browser. For some project scenarios, additional add-in components may be required. For additional configuration of add-in components please refer the below guide - https://docs.pega.com/configuring-outlook-add-component-pega-applications

Use the Pega function “SendEmailMessage” in a Data Transform or Activity to achieve this requirement to send out meeting request to any email addresses, which will work in office 365 as well. Below are the steps for a simple meeting request to outlook.

Technical Solution & Execution

  • Configure/set the required parameters in a data transform/activity using the function SendEmailMessage of Pega-IntegrationEngine ruleset to send the meeting details along with the email message send out from Pega.

  • Create a flow action to have a section where the user enters the details regarding the meeting.

flow action
  • Create a section rule to capture the meeting related details from the user and map it in the flow action.
section to capture meeting details
  • In the section rule, add the relevant fields for the meeting/Email as show above including title, attendees, start & end date, location, email body and configure the mapping using the OOTB properties.

  • Create a temporary page “MessageData” under “Data-Corr-Email” class to hold the values form the screen in pages & class of the section rule.

  1. For Meeting start date mapping: MessageData.pyMeetingData.pyStartDate

    meeting start date
  2. For Add Title mapping: MessageData.pySubject
  3. For Add Required Attendees mapping : MessageData.pyToString
  4. For Meeting End date : MessageData.pyMeetingData.pyEndDate
  5. For Add Location Mapping : MessageData.pyMeetingData.pyLocation
  6. For Meeting Details/Email body mapping : MessageData.pyBody
  7. For Priority can be set using MessageData.pyPriority - “HIGH”, “NORMAL”, or “LOW” - defaults to “NORMAL
  • Set the meeting details under MessageData.pyMeetingData page and email related field directly under MessageData page

Mandatory Parameters required for Meeting Invite

  1. pyMeetingData.pyStartDate - meeting start date/time, relative to GMT
  2. pyMeetingData.pyEndDate - meeting end date/time, relative to GMT
  3. pyMeetingData.pyLocation - meeting location
  4. pyMeetingData.pySetReminder - flag to activate a pop-up reminder for meeting attendees
  5. pyMeetingData.pyLocation - meeting location

Optional parameters:

  1. pyMeetingRequest.pyOrganizer - email address of meeting organizer
  2. pyMeetingRequest.pyDescription - meeting description
  • Create a Data transform and set the required values for sending out the email from Pega along with the details captured from the screen for the meeting request as shown below:
data transform
  • Once all the required properties were set, use the SendEmailMessage function to send out the email with meeting request to the customer as shown below
email function used in DT
  • Call this Data transform as the post processing of the meeting request details flow action to pass the captured values from the section dynamically.
flow action post processing
  • When the email is sent out, check the MessageData Page with all the relevant details for the meeting request which consists of the data captured from the screen.
tracer snippet 1
tracer snippet 2
  • Once the email is sent from Pega, customer receives the email as show below with the meeting invite attachment.
outlook snippet 1
  • Now the customer can open the attachment and add it the outlook calendar as shown below:
outlook snippet 2
  • Once the meeting set up is done, the user will be notified accordingly.
outlook snippet 3

Note: This solution has been implemented in Pega 8.6