Challenges with 'Get outlook mail messages' activity


#1

When I am using ‘Get outlook mail messages’ with Account property set the I get error - ‘Get outlook mail messages : The specified folder does not exist’.
If I remove mail id from account it works.

How to get mails from a specified account id?

Also Get and send mails does not work if I have outlook instance open, I get below error -

image


#2

Check this out.


#3

Are you providing any other account which is not associated to the current user of the outlook installed.?


#4

Hi Divyashree,

Yes, we were setting other account so it is fixed now. But we have further issue with ‘get outlook mail message’ Filter. We wanted to filter mails based on the sender so we tried “[senderaddress] = ‘somemail@mastek.com’” but this does not work.

So we had to get all mails and add condition to check sender’s address.

Is there any other alternative that we can use?

MASTEK LTD. Regd. Office address: 804/805,President House, Opp.C.N.Vidyalaya, Near Ambawadi Circle,Ambawadi, Ahmedabad- 380 006, India. CIN- L74140GJ1982PLC005215 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Opinions expressed in this email are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from desktop and server. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


#5

instead of looping you can use select method and get the list of mail messages at once.


#6

Hi,

Thank you for your response.

I know these C# techniques to filter out the mails but what I am more interested is the ‘Filter’ of get outlook mail message activity. Is there any filter to get filtered mails based on the sender id.

Thank You