I have an Outlook folder structure like the following:
Automotive (Roof folder for bot to process mail items)
—>Automotive Archive (subfolder with month folders below)
Basically, my bot is processing all mail found in “Automotive” root folder as above by using Get Exchange Mail activity and a bunch of other activities to process. At the end of this process, I want to archive the mail into the relevant subfolder for the current month. What is the best way to be doing this?
For example, if mail item is picked up today, I want it to calculate today’s date/month (August 2020) and move to the “Automotive/Automotive Archive/08. August” subfolder, and if subfolder doesn’t already exist, creates it. This is just to archive them in the month folders once completed.
My current solution I was trying to work on uses the following
Assign Activity: OutlookFolders = app_Outlook.Session.DefaultStore.GetRootFolder().Folders
I’ve been browsing all possible options with this, and I can only get the bot to give me all the root folder names in Outlook. I’m not sure how to read all the subfolders inside each root folder?
Any help appreciated!