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
670 stars 96 forks source link

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

Open glr0221 opened 2 months ago

glr0221 commented 2 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 2 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 2 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 1 month ago

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

cody-lettau commented 1 month 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 weeks 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?