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
689 stars 95 forks source link

getSharedPropertiesAsync() not supported in New Look Outlook. #4619

Open glr0221 opened 4 months ago

glr0221 commented 4 months ago

Provide required information needed to triage your issue

Office.context.mailbox.item.getSharedPropertiesAsync() is not defined in new look outlook.

Your Environment

Expected behavior

Is what we are seeing the expected behavior? Or should the new look outlook support getSharedPropertiesAsync() like the classic look outlook does?

Current behavior

getSharedPropertiesAsync() is not defined in new look outlook.

Steps to reproduce

  1. Create a spam addin like the sample spam addin.
  2. In the spam addin code, add getSharedPropertiesAsync() to detect shared mailbox details.
  3. Display the getSharedPropertiesAsync() results in the success message.
  4. ACTUAL BEHAVIOR : getSharedPropertiesAsync() is never executed.

Link to live example(s)

NONE

Provide additional details

NONE

Context

Spam addins cannot be used for shared mailboxes.

Useful logs

Thank you for taking the time to report an issue. Our triage team will respond to you in less than 72 hours. Normally, response time is <10 hours Monday through Friday. We do not triage on weekends.

mmanjaree-msft commented 4 months ago

Thanks for reporting this issue. We have this in our backlog. Unfortunately, we donot have any timelines to share at this point Internal tracking id- 4700798

zhangyuezhong commented 4 months ago

Office.context.mailbox.item.getSharedPropertiesAsync() is not defined

if open the email with weblink.

https://outlook.office365.com/owa/?ItemID=AAMkADEyZDk0NjI2LTI4YTQtNGY0Yy1iYTkxLWIxYTNjYzZmZGE5ZABGAAAAAABS%2BeUir%2FVsRZUMuOktFMbcBwCBgATlYpetQZ8OobjWGaozAAAAAAEMAACBgATlYpetQZ8OobjWGaozAAAMY1StAAA%3D&exvsurl=1&viewmodel=ReadMessageItem

and the Office.context.mailbox.userProfile.emailAddress (always show the primary account), not the shared mailbox.

CameronDwyer commented 3 months ago

Also having this problem in Outlook for Web any update of timeline for bug fix?

cody-lettau commented 3 months ago

Is there a path to migrate to Graph API for this function? If the REST API is being deprecated, we need this functionality available within the Graph API (if it is not yet).

AlonEkelund commented 2 months ago

We also have the issue in web mail and the new outlook for two of our Apps. It is a major issue and we are getting more and more complaint from customers. Any update? or ETA for fixing the bug?

glr0221 commented 1 month ago

Hello @mmanjaree-msft . Any update on this item ? Thank you very much.

AlonEkelund commented 1 month ago

To my understanding the issue is fixed. We don't have the problem. In some cases the user had to clear the browser cache.

glr0221 commented 1 month ago

@AlonEkelund

I just ran some tests for this using a spam addin for Classic look outlook. The addin got stuck in a loop (crashed) when I added the getSharedPropertiesAsync() call.

AlonEkelund commented 1 month ago

just tested in my classic outlook. our apps works in shared mailbox.

glr0221 commented 1 month ago

@AlonEkelund may i know if your app a spam/event-based addin as well? And also may i know your version/channel of office? Thank you very much.