Question
1
Replies
703
Views
Datacom group
Posted: January 16, 2018
Last activity: November 6, 2018
Closed
Solved
Looping through all the items in Outlook inbox
Hi All,
I want to process all the e-mail items in the inbox when I receive an email with a particular subject.I can start the automation when I receive the email.But I couldn't find a way to loop through the items in the inbox.Is the class for the Outlook inbox available in Pega Robotics?How to implement this?
This is a little tricky, but it is actually rather simple. Use the RetrieveEmail method of the Outlook Connector. It returns all the mail items in a given folder. I was unable to get this working using a ListLoop, however a forLoop will work in conjunction with the GetItem method of the collection just as well.