Nov 15 2022 04:31 AM
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 new email in Draft state.
If I use the same compose deeplink again from the same browser, then it opens the new email in compose mode as expected.
It feels there is some issue with the cache/cookie storing the OpenID Connect token that gets loaded when I open outlook with the deeplink for first time, and other times it opens the compose email window properly.
Also when I already have Outlook opened in browser and then if I open new browser window from my React application using the deeplink, it works alright.
Deeplink - https://outlook.office.com/mail/deeplink/compose/...
Nov 15 2022 11:08 PM
Nov 15 2022 11:12 PM
Nov 15 2022 11:24 PM
@maheshkumaryu - Could you please share which document you are referring to? In this create deep links doc, there is no such syntax that you mentioned. Can you please share code snippet that you are referring to?
Nov 15 2022 11:53 PM - edited Nov 16 2022 12:23 AM
@maheshkumaryu - We tried to open the above shared deeplink using window.open() and
Nov 16 2022 01:44 AM
Nov 16 2022 02:25 AM
Nov 16 2022 07:03 AM
Nov 17 2022 04:15 AM - edited Nov 17 2022 04:17 AM
@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
Nov 17 2022 06:19 AM
Nov 17 2022 08:43 AM
@maheshkumaryu - We see the mail in draft state only even after opening it second time, can you also share a video of this issue if possible.
Nov 30 2022 07:42 AM
@Meghana-MSFT, This is the url deeplink I am passing to window.open(url)
url = "https://outlook.office.com/mail/deeplink/compose/{your-itemid}?ItemID={your-itemid}&exvsurl=1"
Dec 01 2022 02:46 AM
Dec 19 2022 10:15 PM
@Meghana-MSFT , do you have any update on this bug?
Or any ETA for the update?
Dec 20 2022 09:33 PM
Jan 19 2023 06:32 AM
Jan 23 2023 01:58 AM
Mar 07 2023 11:33 PM - edited Mar 09 2023 09:15 AM
@maheshkumaryu - We got the below response from the Outlook team.
"This is using a pre-Teams app web URL format that deep links into OWA. It is recommended to use “Mail” capability in the JS SDK, which is the most structured/strongly typed way to support this scenario."
Thanks
Mar 08 2023 12:11 AM
Mar 16 2023 12:19 AM
@maheshkumaryu - Could you please check the below samples that show how to call the compose deeplink
this is a good and expected Compose deeplink
this is a good and expected Read deeplink
this is a little bit of a mix-and-match and ... not quite right. you're likely to run into some unexpectedness with this link
Could you please use the correct compose deeplink syntax and confirm if that helps?