Office Add-ins community call – March 9, 2022

Office Add-ins community call – March 9, 2022

Call Summary

This month’s community call features an update on Excel API 1.15 preview (accessing and using Chart Series Dimension and Pivot Table Data Source APIs) – Sirui Sun, Software Engineer (Microsoft) and Q&A both at end of call and in chat throughout call. Don’t forget to register for the PnP Recognition Program. The call was hosted by Alex Jerabek (Microsoft). Recorded March 9, 2022.

Microsoft Presenters

  • Sirui Sun – Software Engineer (Microsoft)
  • Alex Jerabek - Dev Writer (Microsoft)

Agenda

  • Excel API 1.15 preview – Sirui Sun, Software Engineer (Microsoft) – 00:31
  • Q&A05:10

Last updated: July 7. The presentation Consuming Graph Services using SSO and CORS from event–based Outlook add–ins was removed from this call. Upon further research, it came to our attention that this approach has a potential security risk. Once the Microsoft Graph token is obtained by the middle-tier, it sends the token to the add-in’s client code running in Outlook. The Microsoft Graph access token created by the Microsoft identity platform as part of the on-behalf-of flow is only intended to be used by the middle-tier. Find more details about this security risk at Middle-tier access token request. We are working on creating a sample with prescriptive guidance on how to implement event-based add-ins in Outlook using SSO with the guidance documented at Microsoft identity platform and OAuth 2.0 On-Behalf-Of flow.

Actions

Q&A (Question & Answers)

When can we expect the getSelectedDataAsync functionality to be able to get the selected shapes in a PowerPoint presentation?

Currently, there is no near-term plan to enable getSelectedDataAsync to support selected shapes in PowerPoint. Please let us know more about this scenario on the Microsoft 365 Developer Platform ideas site.

Our Outlook integration sometimes breaks because changes are made to the API and we only find out about them when our integration goes down. Is there any way we could get advance notice of breaking changes so we can update and avoid the friction caused by the downtime?

We’re sorry to hear you’ve been experiencing issues with your add-in. Unless there is a really important reason, we rarely make breaking changes to an API after it has been released in a requirement set. Can you please let us know more about this by creating an issue at https://github.com/officedev/office-js?

We strive to update our documentation to reflect upcoming changes, but we recognize that these may not be immediately visible to our developer community. We are currently working on posting changes and new features to the Microsoft 365 roadmap to better communicate these to the community. In addition to updating our documentation, we also highlight upcoming changes and features in our monthly community call. Again, if you run into a particular issue during development, we encourage you to report the issue at https://github.com/officedev/office-js, so that we can provide you with further assistance.

Is the ability to call the Microsoft Graph API for various customer tenants via JS runtime available for add-ins in Excel and Word? What about shared runtime?

It is available for Excel, but not available in Word yet. If you use shared runtime for Excel, CORS is already supported prior to this. For Excel custom functions that do not use shared runtime, CORS was recently enabled.

Can we use the Fetch API in the Outlook JS runtime?

You can use Fetch, but it is a polyfill over XHR, not a full fetch implementation. The Outlook demo uses Fetch.

Will event-based add-ins support a mail received event rather than compose event?

Support for a read event in event-based add-ins is on our backlog. We’re working to get to it as soon as we can.

Does Office.js in Outlook still work with IE? I created a vanilla task pane add-in using yeoman, and it fails in Exchange on-premises 2016 with IE11.

This should work. We’ll check into the `yo office` templates to be sure there isn’t an error.

Something that would be very useful is visibility into host application (Word, Excel, etc.) API feature development and deployment roadmaps. I would be able better plan a functionality roadmap for our internal Enterprise Office plugins.

We plan announce changes and features via the Microsoft 365 roadmap. This should help everyone keep track of upcoming features and APIs. We are open to your suggestions for how to better communicate upcoming feature development.

For Excel add-ins with a task pane, can we use Next.JS along with React? if so, are there any examples?

Office Add-ins run in an iframe in a browser, or webview on desktop, and therefore support most HTML/JS frameworks and libraries. We don’t have any samples of using Next.JS, although it looks like it would work. You’ll want to be sure the resources that Office expects when loading are configured correctly. For example, you need to be sure the routing is set up to provide the correct URLs for all the images, HTML, and JS pages referenced in the manifest.

Any update on https://github.com/OfficeDev/office-js/issues/1108? The issue with the cursor placement in web Outlook?

We see this issue is affecting multiple customers and we’ve moved this up in priority on the backlog. We’re working to get this resolved as soon as we can. We’ll keep you updated on progress at the original GitHub issue. Thanks!

Should we post in the Microsoft Q&A forum or StackOverflow or GitHub?

The team monitors all of these locations. For development assistance, particularly with coding, please post your questions to Microsoft Q&A or Stack Overflow. To report bugs, please open an issue in GitHub.

Is there a documented or known issue that anyone is aware of with the Word API and supporting older versions of Word documents?

Office Add-ins only work with .docx files. They do not work with the older .doc file extensions. You would need to convert older doc files to the newer format to work with Office Add-ins.

When will current APIs be available across all platforms? For example, OneNote APIs are only available from Office on the web. PowerPoint on an iPad only supports PowerPoint API 1.1, which can only create a new presentation. The main appeal of Office Add-ins is cross platform code, but only seems available for Excel.

Enabling the APIs available across all endpoints is our strategy. However, due to the different technology for the client of different endpoints, sometimes we have to start with one first then expand to others when it’s ready. We don’t have any ETA at this moment and the situation varies for different APIs. If there are specific APIs you need to see implemented across more platforms, please let us know more details at the Microsoft 365 ideas site. We use the feedback there to help with planning.

Resources

Office Add-ins community call

Office Add-ins feedback