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

Outlook getCallbackTokenAsync fails when selecting multiple items (Office on the web) #3909

Closed manuelsidler closed 10 months ago

manuelsidler commented 11 months ago

Your Environment

Expected behavior

When selecting multiple items and calling Office.context.mailbox.getCallbackTokenAsync, it should return the access token.

Current behavior

When running the add-in on Outlook on the web, selecting multiple items and calling Office.context.mailbox.getCallbackTokenAsync throws an error:

image

Steps to reproduce

  1. Clone the example GH repo to reproduce the issue (see link below)
  2. Run the add-in with npm install and npm run dev-server
  3. Side load the add-in on Outlook on the web
  4. Select multiple items
  5. Open the add-in
  6. Click the Get access token button
  7. Open the developer tools
  8. The console contains the error (see screenshot above)

The same steps on Outlook for Mac work fine.

Link to live example(s)

Context

We need the access token to set custom properties on the selected items via REST API.

manuelsidler commented 10 months ago

@exextoc the error seems to be fixed: image

exextoc commented 10 months ago

@manuelsidler Thank you for confirming. Closing the issue.