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...
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-MSFT
Nov 16, 2022Former Employee
Can 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
- maheshkumaryuNov 17, 2022Copper ContributorYes, this is the exact issue we are facing
We need to open the deeplink from Teams, I suspect this is because of the cookie where the outlook token is being stored
Maybe when we open the deeplink for the first time, it doesn't get the proper token.
However, on second try this works
Do you see what can be the issue here?