I have 2 environments and this works in one environment, but not in the other (it has earlier worked fine in both).
I’m using GetOutlookMailMessages to fetch emails from a shared inbox. This inbox has been added as a second account in Outlook.
It works to fetch the Inbox folder, however when I’m trying to fetch anything from a subfolder (“Inbox\TEST”) I get the following error: “The specified folder does not exist”
Fetching emails from subfolders works fine in the primary email account, so I’m clueless what to do now.
When Get Outlook Mail activity is used it will try to configure with your machines installed and connected account in outlook app
So kindly ensure that tax count is having a folder named TEST under Inbox
Or if it’s a shared mail box kindly mention that in shared mailbox property
Cheers @P_S
Yes, it has that folder.
I also tried to create another subfolder named “ABC” in the shared inbox.
It still doesn’t work to fetch this subfolder.
I assume that if I see the folder structure “Inbox\ABC” in Outlook, this is what I should state as Input.MailFolder?
I tried to do the same in the main inbox, and it still worked fine.
So it’s something strange with subfolders in this shared inbox.
I saw your uploaded screenshots, I can see that TESTER RPA contains subfolder inside it.
Inkorgen is main folder just like inbox which already contains email inside it , so when you give “Inkorgen” in Mailfolder ( properties pane) it works.
But on the other hand TESTER RPA is just a simple folder. I would say keep the account name as it is, in MailBox property specify full path to folder from where you want to read mail, like this… “Inkorgen\TESTER RPA\TEST”
Actually “TESTER RPA” also contains emails.
I tried with something like this as well “Inkorgen\TESTER RPA\TEST”, but it didn’t work.
I also tried to create a new folder “Inkorgen\ABC”, that also didn’t work.
Any more ideas? Can there be a setting in Outlook that need to be done?
I have another virtual machine, where I’m using the exact same shared inbox and it works perfect there (to fetch the exact same folder). However, In that machine I have not added this inbox as another account - but it has been given permission via the Exchange Server (? I’m not an expert on this, so not sure exactly how this is configured in Exchange).
In the machine I’m facing this issue, I have added the shared inbox as another account. That’s the only difference.
So I’m clueless in why it works in Machine A, but not in Machine B.
This is from Machine 1, where it works fine (the shared inbox have NOT been added as another email account in Outlook, but permission has been given to the user to that shared inbox).
This is from Machine 2, where it does not work (the shared inbox have been added as another email account in Outlook)
Here it works to read from the folder “Inkorgen”, but not “Inkorgen\TESTER RPA”.
I am having the same issue. It was working earlier and for some reason, the sub folder can no longer be found. Using Inbox of the shared mailbox works fine but referencing the sub folder shows folders cannot be found error. the work around I tried was encasing the getmail act in retry scope as I initially thought it may have been latency issues.