I'm using ExchangeScheduleDataConnector to connect to Exchange 2010. The connection works just fine and I can see and edit appointments on the main calendar with no problems.
This user has multiple calendars though, and I want to see all of them.
Is there a way to retrieve all the calendars for a user?
Any help would be appreciated.
After the user has been loaded, you can find the Resource for the user in the connector's ResourceItems collection. That resource has a Calendars collection which contains all calendars retrieved from the server for that user.
Thanks for the quick reply. Didn't notice it till tonight. Since I was expecting to see an email if the post was updated or replied to, I wasn't checking it here.
I think I already checked what you're suggesting and the calendars collection was null but I'll have to double check that when I'm back on the project again on Thursday.
I'm not sure if this is possible because I believe the group and visibility information is stored by Outlook, not Exchange. I believe this is the case because if I create a few calendars and group and show/hide them in Outlook, then open my email web access, I see a different set of calendars shown.
We're using Exchange 2010 and Visibility is stored locally but calendar groups follow the user account.
I can log on to any of the computers and/or owa and changes I make to the groups (except for visibility) are replicated to the clients.
I just did some research on this and I see that you are correct. It is possible to access the grouping data from Exchange 2010 and later. Having the connector load this information from the server is a feature request. I have forwarded this post to the Developer Support Manager to create a feature request on your behalf.
I put together a quick sample you might be able to use to get the order of calendars from Exchange. Since you cannot access the Exchange service from the connector, it requires installing the Exchange Web Services Managed API, which can be found here: http://www.microsoft.com/en-us/download/details.aspx?id=28952 and including the installed DLL in your application. I added TODO notes in the code where you need to make changes in order to use it in your application.
Thanks Mike!
I'll check it out.