Question
EPAM Systems
CA
Last activity: 6 Nov 2018 20:02 EST
Polling of Mailbox in open span
Hi Team,
I am trying to poll unread mail from mailbox and want to utilize the content of email.
I am able to retrieve unread email data but automation is not executing automatically when any new email is arriving.
Thanks,
Lalit
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Pegasystems Inc.
US
There is an event on the Outlook connector named NewMail. If you click on the little arrow in the upper right corner of the event, you can expand it and see the Mail property. If you extract a proxy, then you can access this Mail object's properties, methods and events. From here, you can do whatever you need to it without polling. Be aware though, that this event fires before the mail is visible in Outlook to the user. In my screenshot, you can see I am checking the subject of a new mail when it arrives and marking it as Read if it matches a specific subject.
EPAM Systems
CA
Hi Sasnt,
Thanks it worked for me .
you have mention that NewMail event will fire before mail visible to the user this means new mail event is checking directly from exchange ?
Thanks,
Lalit
Pegasystems Inc.
US
I believe so. I only mentioned it because if you planned to move the email or do something that took a long time, it might delay the user being able to know that the email arrived and do anything to it themselves.
EPAM Systems
CA
ok Thanks ..
EPAM Systems
CA
Hi Sasnt,
How do i configure in robotics side if multiple mailbox is configure in my outlook?
Thanks,
Lalit
Accenture Solutions Pvt Ltd
IN
Hi Lalit,
When Multiple Accounts are configured in Outlook Mailbox ,Automation will run only on the default account, one thing we have to make sure is to setup the desired account as Default in outlook itself(on which automation needs to be performed).In outlook go to File->Account Settings ->Select the desired Email address or Account out of Shown Accounts -> Select option Set as Default in above pane.
Regards,
Pravallika.
Pegasystems Inc.
US
I don't know exactly what would happen with Multiple Mailboxes as the configuration just has an entry for "Folder" which I usually set as "Inbox". You can test easily though.
- Create a new solution and add a Global Container.
- Add a "MicrosoftOutlook" connector from the "Connectors" tab in the Toolbox.
- Set the Properties for it;
- StartOnProjectStart = True
- ReadType = Unread
- Monitor = True
- Folder = Inbox
- Create an automation that responds to the NewMail event.
- Have this show a MessageDialog.
Send yourself an email to one mailbox at a time and see if they both trigger the MessageDialog. I suspect only the primary will, but I only have a single mailbox, so I cannot test.