06-19-2017 12:30 PM
Hi! I was wondering if there was a way to sort through multiple email accounts if you have multiple accounts on your Outlook. I want to be able to get emails from an account that was added to Outlook, but can't figure out how to point to just that account and not the original default account. So far I have tried using the ActiveX property node _NameSpace Accounts to invoke node _Accounts Item to property node _Account UserName, but from there I am not sure how to then get into the inbox folder of that account. Any advice is appreciated!
06-20-2017 09:13 AM
Hi ! Have you searched in other thread related to outlook?
There are good examples like http://forums.ni.com/t5/Example-Program-Drafts/Search-Outlook-Email-and-Retrieve-an-Email-s-Subject-... .
Can you upload your VI?
I'm going to search and try to test some code.
Have a nice day.
06-20-2017 10:32 AM
I think I may have figured it out, but this method wont work for me since the second email account I am trying to access on Outlook has not really been added as a second account, instead it gains access to it through an Exchange server, so Outlook doesn't see it as a second account. I'm trying to figure out how Outlook see's the account and how I can reference it.
06-20-2017 11:58 AM
I was wondering if you merge the different accounts on Outlook, create a new inbox folder then you use your code to read that folder?
it's only an idea.
06-20-2017 12:04 PM
I'm not sure how I would merge the two, but it appears that Outlook sees the second email as a folder and I am able to get it to give me the name of the folder (that being the email I am trying to access), but haven't quite figured out how to get into the inbox of that folder to pull the emails from.
06-20-2017 03:56 PM
Here is a link to combine outlook inbox to multiple accounts (POP3 accounts)
You can deliver to a custom folder and read it from there
http://www.thewindowsclub.com/combine-outlook-inbox
any updates with the pull of the emails?
06-23-2017 12:30 PM - edited 06-23-2017 12:34 PM
If you are restricted to only viewing the email through exchange rather than adding the email as another account then you can't combine the inboxes.
06-26-2017 09:57 AM
Hi, any update or workaround?
06-26-2017 10:09 AM
So far the only workaround I have found is to invoke NameSpace and use the GetFolder method. That at least pops up a window showing the folders in Outlook and allowing me to click on the correct folder, but I haven't been able to just programmatically call on that folder using ActiveX. Surely there is a way, but no luck on my end thus far.