OfficeDev / office-js

A repo and NPM package for Office.js, corresponding to a copy of what gets published to the official "evergreen" Office.js CDN, at https://appsforoffice.microsoft.com/lib/1/hosted/office.js.
https://learn.microsoft.com/javascript/api/overview
Other
687 stars 95 forks source link

Outlook: Deeplinks to mail items returned by Outlook API no longer load #1095

Closed davidfishlock closed 3 years ago

davidfishlock commented 4 years ago

When attempting to navigate to a WebLink for a mail item returned by the Outlook API, the user receives a blank page with a spinner and 'loading' indefinitely.

Expected Behavior

The OWA read item view is displayed with the mail item

Current Behavior

The user is stuck on a blank loading screen indefinitely

Steps to Reproduce, or Live Example

Context

Your Environment

qiuzman commented 1 year ago

Also seeing this - it was working up until a few months ago, now broken, have tried many things. FAIL

Yea same for us it was all working until today. Now the web links for emails just result in an envelop opening and reopening over and over on outlook.office365.com. This is super frustrating as my users think it is an issue on my end lol.

Frank-Bresz-EY commented 1 year ago

Team - here is something - where formerly I was using:

https://mail-us.o365.company.com/mail/deeplink?ItemID=AAMkADYxZGViMjA1LTA4MDAtNGExMy05NDFmLTRlZDM5MTAzOGMzOQBGAAAAAAA5T6IEPLoISZ-sA9HfSju7BwC40PwF1e2CQbCSgFXyeGfbAAAAmKSNAADbQGoTkL40RZwMKwbhlQxZAAQZls71AAA=

I changed to this:

https://mail-us.o365.company.com/mail/inbox/id/AAMkADYxZGViMjA1LTA4MDAtNGExMy05NDFmLTRlZDM5MTAzOGMzOQBGAAAAAAA5T6IEPLoISZ%2FsA9HfSju7BwC40PwF1e2CQbCSgFXyeGfbAAAAmKSNAADbQGoTkL40RZwMKwbhlQxZAAQZls71AAA%3D

Note - I had to change deeplink?ItemID= to be /inbox/id/

Also had to do the HTTP thing to convert '-' and the '=' to the %2F and the %3d

I need to determine how I make use of this in my powerautomate - I think there was a hint somewhere in the thread on how to change the -= stuff into the right characters. If I figure it out I will post here.

It still doesn't seem to be 100% though.

pulsovi commented 1 year ago

Also seeing this - it was working up until a few months ago, now broken, have tried many things. FAIL

I have the same, unable to use the "hack" of /inbox/id/ because some of the items I want to read are not in the inbox.

On browser console errors it show : Uncaught (in promise) TypeError: c is undefined somwhere in the minified code at ...options:c.options...

,(()=>gn.importAndExecute(u))),runAfterRequests:On,loadBpos:!0,strategies:i,bootstrap:ln,options:c.options,isDeepLink:u==sn.Y.MailDeepLink||u==sn.Y.CalendarDeepLink,onLoaderRemoved:t,handleBoot

Same as #3345

Frank-Bresz-EY commented 1 year ago

Well I have this Power Automate thing working for items in inbox - but it doesn't work for items in the sent folder - which I still cannot figure out.

These links that look nearly identical - work if the item is in the inbox - but not when viewing items in the sent folder - which is called 'sentitems' in OWA Now for some reason.

This gross, horrible and disgusting Power Automate generates the right link for the Inbox (Had to use replace because uriComponent does not change the "dash" into "%2F", and apparently the new OWA interface needs that to be updated)

concat(' https://mail-us.o365.company.com/mail/inbox/id/', replace ( uriComponent ( triggerOutputs()?['body/id'] ) , '-', '%2F' ) )

https://mail-us.o365.company.com/mail/sentitems/id/AAMkADYxZGViMjA1LTA4MDAtNGExMy05NDFmLTRlZDM5MTAzOGMzOQBGAAAAAAA5T6IEPLoISZ%2FsA9HfSju7BwC40PwF1e2CQbCSgFXyeGfbAAAAmKSPAADbQGoTkL40RZwMKwbhlQxZAANzKunLAAA%3D

https://mail-us.o365.company.com/mail/inbox/id/AAMkADYxZGViMjA1LTA4MDAtNGExMy05NDFmLTRlZDM5MTAzOGMzOQBGAAAAAAA5T6IEPLoISZ%2FsA9HfSju7BwC40PwF1e2CQbCSgFXyeGfbAAAAmKSNAADbQGoTkL40RZwMKwbhlQxZAAQdoVVkAAA%3D

https://mail-us.o365.company.com/mail/inbox/id/AAMkADYxZGViMjA1LTA4MDAtNGExMy05NDFmLTRlZDM5MTAzOGMzOQBGAAAAAAA5T6IEPLoISZ%2FsA9HfSju7BwC40PwF1e2CQbCSgFXyeGfbAAAAmKSNAADbQGoTkL40RZwMKwbhlQxZAAQdoVVaAAA%3D

Frank-Bresz-EY commented 1 year ago

Hmm, I can't be sure - but seems like the gang at MSFT fixed the DeepLink

Frank-Bresz-EY commented 1 year ago

Just tested one of my old flows with the deeplink and it worked. Looks like whatever "was broken" - got repaired

UNiXMIT commented 1 year ago

Broke for me on Chrome and Edge this week. It works in Brave. Maybe a Chrome update has broken it again recently.

exextoc commented 1 year ago

@UNiXMIT Can you create a new issue with all the details of the problem you are facing as this is and old issue and already closed?

UNiXMIT commented 1 year ago

@UNiXMIT Can you create a new issue with all the details of the problem you are facing as this is and old issue and already closed?

Typical, I just went to reproduce this again to raise a new issue and it's working again in Chrome and Edge.

exextoc commented 1 year ago

@mccreelake While we are investigating the problem you are facing, can you please create a new issue with all these details of the problem you are facing as this is an old and wider issue and is already closed?

wannesmatthys commented 11 months ago

Is this still broken? Having the exact same problem 3 yrs later.