Using the ms-outlook
schema you are able to launch Outlook programmatically.
Since I couldn't find any clear documentation on how to use this schema I decompiled the apk of version 4.2212.2.
Here is a simple form of documentation:
actions.xml
shows that the app accepts the following urls (prepended with ms-outlook://
):
*empty string*
emails
emails/inbox
These options open the email page on the tab last used.emails/inbox/focused
emails/inbox/other
These options open the email page on the corresponding tab (focused or other).emails/new{?to,name,body,type}
This opens the page for writing a new calendar event. Paramsto
,name
andbody
are optional and explain themselves.events/new{?title,description}
This opens the page for writing a new calendar event. Paramstitle
anddescription
are optional and explain themselves.events/view{?action=[next,agenda,day,month]}
This opens the calendar page.action
param is optional and can benext
/agenda
,day
,month
which will set the how the overview is displayed. (I couldn't find the action corresponding to the 3-day view easily, but I assume there is one)search{?querytext}
This opens the search page.queryText
param is optionalpme{?action}
I assume this is for Outlooks "Play My Email" function but I couldn't get this one to work.
Note: If the app is displaying an email while one of these first five urls is used, it does not navigate to that page. This does not happen while displaying a calendar event. Seems like this might be unintentional.
@keithlyding I wrote this down since I was looking into an issue at a previous job and couldn't find any documentation. I haven't been involved in this for a while so I can't help you. You can try to find any new options yourself by unpacking the latest outlook apk and looking for this file. Maybe they have updated some stuff.