LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sort through multiple email accounts in Outlook using ActiveX

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!

0 Kudos
Message 1 of 9
(3,713 Views)

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.

0 Kudos
Message 2 of 9
(3,664 Views)

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.

0 Kudos
Message 3 of 9
(3,657 Views)

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.

0 Kudos
Message 4 of 9
(3,654 Views)

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. 

0 Kudos
Message 5 of 9
(3,651 Views)

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?

 

 

0 Kudos
Message 6 of 9
(3,642 Views)

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.

0 Kudos
Message 7 of 9
(3,613 Views)

 Hi, any update or workaround?

0 Kudos
Message 8 of 9
(3,587 Views)

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.

0 Kudos
Message 9 of 9
(3,583 Views)