Outlook set selected folder not working

I have a script that jumps to a specific mail folder in Outlook using the:
set selected folder to …
This works great in the latest O365 Outlook version on Big Sur with classic view, but when I enable the New Look in Outlook, this same script fails at the above command.
Anyone have an idea why it would fail in the New Look?


I’ve had similar issues in earlier versions of Outlook and have a really clunky workaround.

In a handler I get a list of all forwards, step through loop getting the name of each folder, and if it matches the folder I’m looking for returns a reference to the folder.

Works so far.