Forum Discussion
maheshkumaryu
Nov 15, 2022Copper Contributor
Outlook Deeplink opens a email compose window in draft state only for the first time
I am using the Outlook compose deeplink to open a new email in compose window from my react application with window.Open(deeplink), however for the very first time a new browser window is opened with...
Meghana-MSFT
Nov 15, 2022Former Employee
maheshkumaryu - We tried to open the above shared deeplink using window.open() and
microsoftTeams.app.openLink() and see the below behavior. There is no difference in how the deeplink is opened for the first and second time.
ā
maheshkumaryu
Nov 16, 2022Copper Contributor
This is the syntax I am trying to open - https://outlook.office.com/mail/deeplink/compose/{emailItemId}?ItemID={emailItemId}&exvsurl=1
Can you please try to open the same link from an incognito window?
Can you please try to open the same link from an incognito window?
- Meghana-MSFTNov 16, 2022Former EmployeeCan you please let me know how you are fetching the emailitemId? Can you please share a reference document. Thanks.
- maheshkumaryuNov 16, 2022Copper ContributorThis is the graph API we call to generate the email item id
https://learn.microsoft.com/en-us/graph/api/user-post-messages?view=graph-rest-1.0&tabs=http
From the response body, the 'id' property is the email item id i use with the outlook compose deeplink- Meghana-MSFTNov 17, 2022Former Employee
maheshkumaryu - We created a draft message and got the id. We added the itemid to the deeplink and see the below behavior -
1) Opening from Teams- 1st time and 2nd time
2) Directly pasting deeplink in browser