angelhearted
7 years agoNew Contributor
TC12, Outlook16 - select folder does not work
Hello Need to set current selected folder in Outlook 16 (and 13). The folder is a subfolder of Inbox. With TC11 I could do it the following way (JScript): var folder = 'TestFolder'; var folde...
- 7 years ago
We've figured out ourselves how to implement that in TC12.
outlook.GetNamespace('MAPI').DefaultStore.GetRootFolder().Folders.Item(folder); outlook.Application.ActiveExplorer().SelectFolder(folder); const currentView = outlook.Application.ActiveExplorer().CurrentFolder.CurrentView; currentView.Reset(); currentView.Apply();
Hope it will save time for somebody.