We have a SharePoint list in Office365 that has a links to a MailBox item in Exchange in the same Office365. The links are created from .NET code with the EWS framework. The link has the format
https://outlook.office365.com/owa/#viewmodel=_y.$Kh&ItemID=<itemId>&wid=99&ispopout=1
We have three issues with the above link
1) When clicking the link first time, the user is redirected to the FrontPage of his/hers mailbox, this is because of authentication. Therefore, the user has to go back and click the link again. How can you make sure that the user is logged into outlook when opening the site?
2) The URL in the link is changing from time to time, "Kh" used to be "Kb" so we had to manually change all links. And today for some reason this is added dynamically "?ver=15.0.680.9&cver=15.0.651.14". Is there was to make these links so we don’t have change the code and the existing links, when Microsoft changes things.
3) The last few days, the mails will not open anymore the spinning wheel with the text "Outlook Web App" just stays there. The folder with the MailBox Items cannot be opened from OWA any longer, but works in the Outlook from the Client.