1,066 questions with Microsoft 365 and Office | Development | Office JavaScript API tags
office office-add-in insert ooxml error
insertooxml error
Microsoft 365 and Office Development Office JavaScript API
Identity API is not supported for this add-in
We are creating an add-in that needs to retrieve the user's M365 email - the add-in is a taskpane and made for Word and Excel. The issue occurs when getting the access token prior to calling the graph api. Office.onReady(async () => { try { //…
Microsoft 365 and Office Development Office JavaScript API
Overcome taskpane add-in (Word) SSO issue - error 13000
We are creating an add-in that needs to retrieve the user's M365 email - the add-in is a taskpane and made for Word and Excel. The issue occurs when getting the access token prior to calling the graph api. Office.onReady(async () => { try { //…
Microsoft 365 and Office Development Office JavaScript API
How to properly open a Dialog using office.js and DialogApi?
On a freshly created taskpane add-in using yeoman generator for outlook with react, I'm trying to open a dialog for authentication using DialogApi but only an empty webview2 appears. For testing purposes, I'll only try to open a simple html file on this…
Microsoft 365 and Office Development Office JavaScript API

JavaScript not working with ssrs report in edge
I working with an ssrs document and have images with a go to url that I inserted a JavaScript javascrpt:void(window.open http:\ the command completed works on a url command line within edge but if I click on the item nothing happens with the ssrs…
SQL Server Reporting Services
Microsoft 365 and Office Development Office JavaScript API
Emails sent via Office.js add-in not rendering correctly in inbox
Hi everyone, I’ve developed a custom Outlook add-in using OfficeJS and I’m encountering an issue related to rendering HTML content inserted into the message body via the setSignatureAsync method. The problem specifically occurs **when a message is…
Microsoft 365 and Office Development Office JavaScript API
JScript issues with Win11 24H2: per-application "JScriptReplacement"?
After Windows11 24H2, there are many compatibility issues with JScript engine as reported in other threads. There is a known workaround in the registry (per system or per user) using the JScriptReplacement=0. But, is there a per-application workaround…
Microsoft 365 and Office Development Office JavaScript API
Windows for business Windows Client for IT Pros User experience Other
How to repair invalid SpeechRecognition API after edge Version 111.0.1661.54
Recently, after I updated my Edge browser, I discovered some speech-to-text extensions were unable to recognize my voice. Through my research, I found that the reason could be due to an API called SpeechRecognition. In Chrome, the speech-to-text API used…
Microsoft 365 and Office Development Office JavaScript API
Microsoft Edge Microsoft Edge development

How to insert content at the end of a specific section in Word Add-in using Office.js?
Question: I'm developing a Word Add-in using Office.js and inserting reference links under a "References" heading. Issue: Each new reference is being inserted at the top of the "References" section, causing the order to be…
Microsoft 365 and Office Development Office JavaScript API
Word.Document.styles is undefined at runtime in Word for Mac 16.87 (WordApi 1.4 manifest)
Body: We are developing a Word Office Add-in and encountering a persistent issue where context.document.styles evaluates to undefined at runtime. This occurs specifically in Microsoft Word for Mac version 16.87, even when our add-in's manifest specifies…
Microsoft 365 and Office Development Office JavaScript API
Using Office-URI-Schemas to create a link for opening Word with an add-in open in the Browser (Office365)
I am currently developing an add-in that heavily relies on the possibility to provied a link for a customer, that automatically starts a word instance with that add-in open. I have already found the documentation for Office-URI-Schemas, and can…
Microsoft 365 and Office Development Office JavaScript API
Outlook Add-in: Conditional behavior in manifest based on requirement set
Hiya, I develop an Office Add-in for Outlook that works with the message send functionality. Outlook Add-ins have two features for message send functionality, the ItemSend ExtensionPoint and the OnMessageSend LaunchEvent extension point. I'm wondering if…
Microsoft 365 and Office Development Office JavaScript API
How to remove debug pop up on add in load
Hello all, Currently developing a JavaScript add-in for Microsoft word and are looking to start running live tests with users. To facilitate this I wish to remove the following pop-up that appears when the add in button is pressed. (Clicking…
Microsoft 365 and Office Development Office JavaScript API
Microsoft 365 and Office Install, redeem, activate For business Windows
Microsoft 365 and Office Word For business Windows
Is there a way to detect that a user has closed the smart alert dialog box?
Let's say my event-based addin caused this dialog to appears after user clicks send because they haven't fulfilled certain conditions. Ref:…
Microsoft 365 and Office Development Office JavaScript API
office.js:76 Uncaught Error: Office.js has not fully loaded. Your app must call "Office.onReady()" as part of it's loading sequence (or set the "Office.initialize" function). If your app has this functionality, try reloading this page.
I'm developing a Word Add-in using the Yeoman generator and have integrated custom APIs for the authentication flow. Although I've implemented Office.onReady() in both my main platform and within the Add-in code, I’m consistently encountering the…
Microsoft 365 and Office Development Office JavaScript API
Insert Word document into Outlook email using office.js
Is it possible to insert a Word document into an Outlook email using office.js? I know how to do it using VBA/VSTO but am struggling in office.js I can see that HTML can be inserted, but I'm unsure how to convert a Word document to HTML for insertion…
Microsoft 365 and Office Development Office JavaScript API


Using Microsoft 365 Defender with GCC-HIGH endpoint
Hello, We are attempting to connect to Microsoft 365 Defender using API requests. We've tried both the device code flow and the client credentials flow. Since our tenant is GCC-HIGH, we have ensured that our requests use the correct resource and scope…
Microsoft 365 and Office Development Office JavaScript API
How to detect hyperlinks using Word office js API
I develop an office add-in for Word (React frontend, typescript). I need to retrieve all hyperlinks in a Word document using the API (https://learn.microsoft.com/en-us/javascript/api/word?view=word-js-preview). But I cannot figure out how to do that…
Microsoft 365 and Office Development Office JavaScript API
Background Color of a Slide
How can I get the background color of a slide or the presentation theme? I cannot find such an option in the documentation. For example, most presentations (including the standard one) have a white bg. But some have a different color, I want to get…
Microsoft 365 and Office Development Office JavaScript API

Unable to download Office for the first time
I have recently purchased a product key for Office 2024 Standard Edition. I start by entering my product key at setup.office.com. My product key gets me to a 2nd page with terms and conditions. I click the redeem. I am taken to a 3rd page where I can…
Microsoft 365 and Office Development Office JavaScript API
