Synchronizing Pega Sales Automation email with Microsoft Exchange
Integrate Pega Sales Automation email with Microsoft Exchange to create a background process that synchronizes your Microsoft Exchange email with your Pega Sales Automation email, so that you can send and reply to emails from within your application to increase productivity and reduce context switching.
Generating a keystore file with the SSL certificate
Generate a keystore file with the appropriate SSL certificate for your Microsoft Exchange integration. Pega Sales Automation uses the keystore file and SSL certificate to communicate securely with your Microsoft Exchange server.
- Retrieve the Exchange Web Services (EWS) endpoint URL from Microsoft
Outlook.For more information on how to retrieve the EWS endpoint URL, see Microsoft documentation.
- Launch the endpoint URL in a Google Chrome browser window.
- To generate and save the SSL certificate, perform the following steps:
- Press F12 to open Developer Tools.
- Click Security.
- On the Security tab, click .
- On the Details tab, click Copy to File.
- Click Next and select Base-64 Encoded X.509 format.
- Click Browse, and then enter a file name and select a path to save the keystore file.
- Click Finish.
- On your local machine, browse for and open the
JDK/bin
folder. - In the
JDK/bin
folder, run the Java Key tool application. - Open the Command Prompt dialog and run the keytool -importcert -file
"<Path for ssl certificate>" -keystore
"<Path for jks file name>" - alias
"<anything>" command.Replace Path for ssl certificate with the path to the SSL certificate that you generated. Replace Path for jks file name with the name for the jks file in the same location as the SSL certificate.
- Click Enter.
- When prompted, enter your password and then confirm the password.
- Click Enter.
- At the Trust Question prompt, enter yes.
Updating the security profile in Pega Sales Automation
Update the security profile in Pega Sales Automation with the keystore file and password that you generated previously. This provides Pega Sales Automation with the SSL certificate that facilitates communication with your Microsoft Exchange server.
- In the header of Dev Studio, search for and select the EWS_Integration_SecurityProfile WS-security profile.
- Click the Keystore tab.
- Next to the Keystore field, click the Open icon.
- Click Upload file, and then select the JKS keystore file for your server.
- Click Upload file
- Enter the keystore password and click Save.
Configuring the basic authentication
Update the authentication profile in Pega Sales Automation with the user name and password for your Microsoft Exchange impersonation account. Your Microsoft Exchange administrator can provide you with the user name and password for the impersonation account.
- In the navigation pane of Dev Studio, click .
- Search for and open the EWS_Integration_ AuthProfile authentication profile.
- Click Save as.
- In the Type field, select NTLM.
- Click Create and open.
- In the User name field, enter the user email for the impersonated user account.
- Click Set password, enter the user password, and then, click Submit.
- Click Save.
Configuring the OAuth 2.0 authentication
Update the authentication profile in Pega Sales Automation with the application ID, client secret, and access token endpoint issued by the Azure Active Directory for the application, which you create in the Microsoft Azure portal. After you create the application in the Microsoft Azure portal, in the API permissions section, select Exchange and select the full_access_as_app check box to grant Exchange full access to all inboxes. For more information, see the Microsoft Azure documentation.
- In the navigation pane of Dev Studio, click .
- Search for and open the EWSOauthAuthenticationProfile authentication profile.
- In the Client configuration section, enter the
following:
- Enter the client identifier number of the application registered in the Azure portal.
- Enter the client secret number of the application registered in the Azure portal.
- In the Endpoint configuration section, in the Access Token Endpoint field, replace the directory ID with the Directory(tenant) ID of the registered application.
- Click Save.
Updating the App Studio settings in Pega Sales Automation
To configure your implementation for integration with Microsoft Exchange, you must enable Microsoft Exchange calendar integration and Use OAuth Authentication settings in App Studio.
- In the navigation pane of App Studio, click .
- Depending on the authentication method you chose in the previous task [LINK],
on the Microsoft Exchange tab, in the Use OAuth
Authentication section, perform either of the following
actions:
- To use basic authentication, leave the check box clear.
- To use the OAuth 2.0 recommended authentication, select the Use OAuth Authentication check box.
- In the Use OAuth Authentication section, in the Exchange URL field, enter the Exchange URL.
- Click Save.
Previous topic Manage email and calendar Next topic Sending emails by using the Microsoft Exchange web service