Just small tips which I’ve discovered with much trial n errors. I am using Office 365 Online my processes and have always been using Get Outlook Mail Message activity as my default to get input from email. Problem with using this method is the programmatic access issue that quite a number of folks have issues with. I switched over to IMAP and quickly realized I have issues with reading MailFolder that is in a sub-folder.
TLDR, Get IMAP Mail Message on Office365 subfolder, use “/”. e.g. “RPA/Something” instead of “RPA\Something”.
Hope it helps! Cheers!