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

Port Office.addin API functions to Outlook JS addin #1802

Closed Deymoun closed 3 years ago

Deymoun commented 3 years ago

Office.addin exists for now in Excel and Powerpoint JS addins. It would definitely be interesting to port this functionality to Outlook JS addin as well.

Expected Behavior

Office.addin is loaded in Outlook JS addin, so that the taskpane can be shown or hidden.

Current Behavior

Right now, Office.addin namespace is not loaded in Outlook JS addin, leaving no choice but to inform the client of the result of a command via Office.context.mailbox.item.notificationMessages.replaceAsync which is not visible enough.

Context

The goal is to be able to open the taskpane from Typescript code while I am executing a command launched from the ribbon. For instance, I want to show the taskpane while refreshing data, so I can show the process ongoing to the user in a dialog inside the taskpane.

Your Environment

exextoc commented 3 years ago

We track Outlook add-in feature requests on our Tech Community Page: aka.ms/M365dev-suggestions Please submit your request there and choose the appropriate label(s). Feature requests on Tech Community are considered, when we go through our planning process.

Deymoun commented 3 years ago

Thanks @exextoc so I posted https://techcommunity.microsoft.com/t5/microsoft-365-developer-platform/port-office-addin-api-functions-to-outlook-js-addin/idi-p/2277783#M13

ElizabethSamuel-MSFT commented 3 years ago

@Deymoun Thanks for posting on Tech Community!

Closing this issue.