Skip to main content
Question

Accessing email public folders

  • March 13, 2026
  • 3 replies
  • 34 views

Hi All,  

I am looking to process emails that are help on an Exchange on-prem server in public folders. Using the Email Connect action I can access the inbox for an account, but I cant find a syntax to access the public folder. I am hoping that someone has tackled this before and can give some pointers. 

Cheers, Cameron

3 replies

Matt.Stewart
Automation Anywhere Team
Forum|alt.badge.img+3
  • Automation Anywhere Team
  • March 18, 2026

Its been a long time since I’ve done on-prem email automation, but I’ll share what I remember about public folders and private folders.

Private folders and all other subfolders associated with the mailbox are reachable by paths.  “inbox/subfoldername/subfoldername”.  No issues doing this pattern anywhere.

For public folders, that pathing won’t resolve when connecting with EWS.  POP3 won’t let you see public folders at all, and IMAP has its own nuances around it (must be turned on).  

For it to work with public folders, there’s a required EWS function that I don’t believe we support.  You have to manually do some functions to get the folder IDs, and then connect to those IDs.  Looking at our email package, we dont seem to support browsing folders by IDs, only names.

@Aaron.Gleason, have you seen this use case before?
 


Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+6
  • Automation Anywhere Team
  • March 18, 2026

@Matt.Stewart I have not, but a quick search shows that public folders start from “PublicFoldersRoot”.

From there, you may have to engage the EWS API to use the FindFolder, GetFolder, FindItem, and GetItem actions because there is no direct path. You have to walk the tree level-by-level. ​@cgillies 


  • Author
  • Cadet | Tier 2
  • March 19, 2026

@Matt.Stewart  & ​@Aaron.Gleason , guys so much for your help, I had not tried the EWS API but it's worth a shot. I tried using Outlook from the email action but it was SLOOOOW. 

 

Cheers, 

Cameron