Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to generate url to add event to Outlook Web Client calendar

On my website, I want to have a link "Add to calendar". It works perfectly with Outlook.com but not for users using Outlook Web Client.

This is my Outlook.com url (works great):

https://outlook.live.com/owa/?path=/calendar/action/compose&rru=addevent&startdt=2018-05-24T12%3A00%3A00-05%3A00&enddt=2018-05-24T12%3A30%3A00-05%3A00&subject=Test%One%&body=Test%Body

These are urls I tried with the Outlook Web Client (don't work):

https://yourexchangeserveraddr/owa?path=/calendar/action/compose&rru=addevent&startdt=2018-05-24T12%3A00%3A00-05%3A00&enddt=2018-05-24T12%3A30%3A00-05%3A00&subject=Test%One%&body=Test%Body
https://yourexchangeserveraddr/owa?cmd=contents&module=calendar&path=/calendar/action/compose&rru=addevent&startdt=2018-05-24T12%3A00%3A00-05%3A00&enddt=2018-05-24T12%3A30%3A00-05%3A00&subject=Test%One%&body=Test%Body
https://yourexchangeserveraddr/owa?cmd=contents&module=calendar&rru=addevent&startdt=2018-05-24T12%3A00%3A00-05%3A00&enddt=2018-05-24T12%3A30%3A00-05%3A00&subject=Test%One%&body=Test%Body
like image 242
albertski Avatar asked May 24 '18 21:05

albertski


People also ask

How do I find my Outlook calendar URL?

Locate your public calendar URL by repeating step 1 and selecting View calendar under Outside organization -> Public calendar. The calendar will open as a webpage and you can copy the URL.


1 Answers

Based on your proposal and the first answer, here my working solution, be carreful with datetime format for start and end parameter:

https://outlook.office.com/owa/?path=/calendar/action/compose&rru=addevent&startdt=2021-05-24T12%3A00%3A00-05%3A00&enddt=2021-05-25T12%3A00%3A00-05%3A00&subject=Test&location=Attineos&body=blabla
like image 75
Clavat Avatar answered Sep 18 '22 12:09

Clavat