Forum Discussion

vlibram's avatar
vlibram
Copper Contributor
Oct 14, 2024

How to Open Outlook Calendar via Deep Link in App if Installed, or Browser if Not?

I'm trying to create a deep link that opens the Outlook calendar to schedule an event. I’ve tried two approaches:

Web URL: Using the following link opens the Outlook calendar in the browser, but I want it to open in the app if installed:

 

https://outlook.office.com/calendar/0/deeplink/compose?allday=false&enddt=${encodeURIComponent(endDateTimeFormatted)}&location=Event&path=%2Fcalendar%2Faction%2Fcompose&rru=addevent&startdt=${encodeURIComponent(startDateTimeFormatted)}&subject=${eventHeading}
App URL (ms-outlook): Using this link opens the Outlook app, but it only opens the homepage and not the calendar compose screen:


ms-outlook://calendar/compose?allday=false&enddt=${encodeURIComponent(endDateTimeFormatted)}&location=Event&rru=addevent&startdt=${encodeURIComponent(startDateTimeFormatted)}&subject=${eventHeading}
Ideally, I want to:

Open the Outlook app directly to the calendar event creation screen if it is installed.
Fall back to opening the browser version of Outlook if the app is not installed.
However, I'm facing issues where the app only opens the home screen, and the browser is always triggered with the web link. Is there any working solution or deep link format that can achieve this behavior across both web and mobile?

  • BTWTestAdmin's avatar
    BTWTestAdmin
    Copper Contributor
    I am experiencing the same issue. I am also attempting to open the event directly into the calendar locally. I will keep exploring work arounds.

Resources