I can move emails to existing folders, but flows fail if I try to move emails to folders that don't exist. I'd like to be able to check if the lsit of email folders includes a string, and if it doesn't then create a folder with that string as its name.
I would also like something similar, like creating a folder named after the subject line of an email. So If I move an email to my allocated work folder, it then creates a new folder named after the email and moves it in there.
Also include the ability to do the same in shared mailboxes, not just own mailbox.
Office365.Move() should also have an additional optional parameter CreatePath: true/false.
If it is set to true, when trying to move an email message to a nonexistent folder, the folder path would automatically be created and the message moved to the destination.