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…
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:…
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…
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…


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…
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…
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…

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…

Shapes , Text boxes in header and footer
Hi there, I've developed an office add-in to get word docs out of my backend app as base64 and on my frontend app i insert this either into newly created document or the context document. Now i'm facing a problem of getting my elements the right styles…

Office.js Not Fully Loaded Despite Calling Office.onReady()
When developing a Word add-in, the following error message is encountered: "Office.js has not fully loaded. Your app must call 'Office.onReady()' as part of its loading sequence (or set the 'Office.initialize' function). If your app has this…
Cross-domain messaging not working as expected in Office dialog API
We are using OfficeDialogAPI to open dialog boxes in our Office Add-in. While closing the Dialog Box, we need to send some data to the parent host and we are using Office.context.ui.messageParent & Office.EventType.DialogMessageReceived to handle…
How to Retrieve Local and Web Paths of an Excel Workbook from OneDrive using JavaScript API
A OneDrive folder has been synchronized on a local machine, allowing workbooks to be opened directly from this folder. The local and web paths can be obtained using the Info => Copy path and Info => Copy local path options, as highlighted in the…
User prompts within Office scripts
Is functionality within Office Scripts to create user prompts coming?
Cricut design space Feb 2023 update issue
I update my design space on 2/10/23 and since then I am no longer able to use design space. I get a blank white screen that acts as though it is constantly trying to reload. I then get a JavaScript error after closing the blank design space. Once I click…
Retrieving text from a table in PowerPoint
How can I retrieve text from a table in with the JS API in PowerPoint? The usual ways fails, as it is not a real text field. Thank you for your answer!
How can I invoke copilot.microsoft.com programmatically via an API so that i can send a prompt in via code or a link?
I would like to submit prompts to copilot.microsoft.com programmatically via API or link such that the user is not forced into the copilot interface to enter a prompt. The problem is to be able to have the user make a preselection from a menu and have…
How to implement paste with destination formatting using Office JS API
Hi, I am trying to implement a cross application AddIns functionality where user can select some Excel data and paste in Word. I want to preserve all the source formatting as how the Word allows to do using Paste with keep source formatting option. …
Office Scripts : Chart Data Labels "Values From Cells
I am trying to create an Automate Script in Excel that will generate and format chart. I am getting close, but I can't figure out how to set Data Label values. I want the same functionality as the Format Data Label/Label Options/Vale From Cells as…
Availability of OnMessageReadWithCustomHeader for Web and New Outlook on Windows
Hello, I would like to know when the OnMessageReadWithCustomHeader events will be available for Outlook on the web and the new Outlook for Windows. This feature is essential for our workflow, and we would appreciate any insights on its expected rollout…
await context.sync not functioning properly for word JS API
I am using the following code- await Word.run(async (context) => { const selectedRange = context.document.getSelection(); selectedRange.load(); await context.sync(); // Insert Content Control const cc =…
