Force Day View of Calendar Published from Outlook Web Access

Is there a way to force the view of the Outlook calendar published through Outlook Web Access 2013 so that it displays the day or week view without the user having to click on an icon to change the view?  I want to display a day view calendar (or week view) by default.  I can successfully publish the calendar but a user has to click the icons to change the view.  I want to display the calendar in an iframe on a digital sign and the user won't have a way to click or touch the icon.  Are there parameters that can be passed in the url?

March 31st, 2015 7:55pm

You can do this using EWS to modify the CalendarViewTypeDesktop property in OWA.ViewStateConfiguration configuration object which is located in the FAI (Folder associated Items) collection of the Root Folder eg

The value enums are

1 = Days

2 = Week

3 = Work Week

4 = Month

            FolderId rfFld = new FolderId(WellKnownFolderName.Root,"gscales@domain.com");
            UserConfiguration OWAVeiwStateConfig = UserConfiguration.Bind(service, "OWA.ViewStateConfiguration", rfFld, UserConfigurationProperties.All);
            if (OWAVeiwStateConfig.Dictionary.ContainsKey("CalendarViewTypeDesktop"))
            {
                OWAVeiwStateConfig.Dictionary["CalendarViewTypeDesktop"] = 3;
            }
            else {
                OWAVeiwStateConfig.Dictionary.Add("CalendarViewTypeDesktop", 3);
            }
            OWAVeiwStateConfig.Update();
Cheers
Glen

Free Windows Admin Tool Kit Click here and download it now
April 2nd, 2015 4:19am

I was advised to re-post this in this forum after I posted it in the Outlook for Developers forum

Is there a way to force the view of the Outlook calendar published through Outlook Web Access 2013 so that it displays the day or week view without the user having to click on an icon to change the view?  I want to display a day view calendar (or week view) by default.  I can successfully publish the calendar but a user has to click the icons to change the view.  I want to display the calendar in an iframe on a digital sign and the user won't have a way to click or touch the icon.  Are there parameters that can be passed in the url?

Thanks!

Brian


April 2nd, 2015 5:47pm

Thanks so much, Glen!

Brian

Free Windows Admin Tool Kit Click here and download it now
April 7th, 2015 12:14pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics