How to use local PST folder in "Get Outlook Mail messages" activity

I am trying to read outlook mail messages from a local folder rather than “inbox” folder.
But getting error the specified folder does not exist. Can someone help me in this.


Hi Arun_Sharma,

if your local folder is sub-folder of Inbox. Just use this “Inbox<Local_Folder_Name>” path in the Mail Folder text box.

Ex:- if Local Folder Name is “My” then give following path “Inbox\My” in Mail Folder text Box.


Hi Santan,

Thanks for your quick response. However after changing it to Inbox\Folder_Name, it is still picking up emails from Inbox because Folder_Name is present in my local system(PST file).
Any suggestions for PST file/folder?

Hi Santa_Barnwal,

Any other suggestion for local PST folder? I am still unable to resolve this.


Hi all,

I’m facing the same problem. How can we access emails in the .pst archive folders ?

Best regards,

1 Like


Sorry for late reply. Please check out this xaml file.

Read Email from PST.xaml (12.4 KB)

1 Like


I’m having the same problem… I can use Inbox but can’t use a pst subfolder. Does anyone know?

Mail_Trigger_Sample has thrown an exception

Source: Get outlook mail messages

Message: The specified folder does not exist

Exception Type: ArgumentException

System.ArgumentException: The specified folder does not exist
at UiPath.Mail.Activities.GetMailActivity.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)

were you able to get any solution for this ? I believe we cannot read local pst folders from UI path activity… can anyone confirm ?

Unfortunately not. For a temporary resolution, i have moved the emails to a folder inside “Inbox”.

Please refer to below xaml file.

1 Like

@abhilashreddyalla @selinajodi Thanks for the solution. I got the idea.

Best Regards,
Arun Sharma