Question
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Scotiabank
CO
Last activity: 25 Jul 2022 11:22 EDT
How to read the body of multiple emails in Outlook
Good day, Please your help, I need to know please with an example how to read the body of an email in outlook within a specific folder.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Updated: 25 Jul 2022 11:10 EDT
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2024-05/e90c12b7-5a50-45b6-9408-8644c06fabca.jpg?h=9bedb0c7&itok=I_lzpbin)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2024-05/e90c12b7-5a50-45b6-9408-8644c06fabca.jpg?h=9bedb0c7&itok=I_lzpbin)
Pegasystems Inc.
US
@LuisB647Here is a video on the subject. If you get stuck, upload your solution and I can take a look at it for you.
https://community.pega.com/video-library/how-retrieve-outlook-emails-using-outlook-connector
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689969000/a419c82c-d026-4a09-ade9-155a2e0c1795.jpg?itok=5X2VI88S)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689969000/a419c82c-d026-4a09-ade9-155a2e0c1795.jpg?itok=5X2VI88S)
Infosys Limited
IN
You can create an email listener rule where you can mention the folder from which the emails will be taken for the processing. In the below screen-shot, as we we have configured the Inbox as our folder, the email listener picks the emails from this folder.
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689953000/5c736e12-b243-4e28-9fa1-456be3cf0c5d.jpg?itok=38IchoUK)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689953000/5c736e12-b243-4e28-9fa1-456be3cf0c5d.jpg?itok=38IchoUK)
TATA Consultancy Services
IN
Configure the email listener folder name as INBOX/Specific Folder . The Listener read the email body from the specific folder
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2024-05/e90c12b7-5a50-45b6-9408-8644c06fabca.jpg?h=9bedb0c7&itok=I_lzpbin)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2024-05/e90c12b7-5a50-45b6-9408-8644c06fabca.jpg?h=9bedb0c7&itok=I_lzpbin)
Pegasystems Inc.
US
@LuisB647 For Pega Robotics, the first thing you'd do is add an Outlook Connector (I suggest placing this in a Global Container). You'd then use the FindEmail method to locate your specific email. This method takes a folder as a parameter, so you can give it a path relative to your Inbox. Another way to locate an email is to iterate though a folder by using the RetrieveEmail method. This returns a collection of emails from a folder. You can pass this to a ListLoop to iterate each one. From the ListLoop, you'd extract a proxy to view the properties of each individual email. One of these properties is "Body" from which you can extract the contents of the body to use however you wish.
Let me know if you need an example.
-
Luis Briceño
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Scotiabank
CO
Could you please share an example of how it would be done?
Accepted Solution
Updated: 25 Jul 2022 11:10 EDT
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2024-05/e90c12b7-5a50-45b6-9408-8644c06fabca.jpg?h=9bedb0c7&itok=I_lzpbin)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2024-05/e90c12b7-5a50-45b6-9408-8644c06fabca.jpg?h=9bedb0c7&itok=I_lzpbin)
Pegasystems Inc.
US
@LuisB647Here is a video on the subject. If you get stuck, upload your solution and I can take a look at it for you.
https://community.pega.com/video-library/how-retrieve-outlook-emails-using-outlook-connector
-
Luis Briceño
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Scotiabank
CO