An Office service that supports add-ins to interact with objects in Office client applications.
1,136 questions with Microsoft 365 and Office | Development | Office JavaScript API tags
Popup Login flow not working since microsoft blocked windows opener unexpectedly
We are facing issues with https://login.windows.net/common/OAuth2/authorize?resource=https://manage.office.com since the resource is giving response header as cross-origin-opener-policy : same-origin; report-to="coop-endpoint"due to which…
Microsoft 365 and Office | Development | Office JavaScript API
How to create a toggle button in the ribbon in the Excel JS API
It definitely seems possible to create a toggle button in VBA (see…
Microsoft 365 and Office | Development | Office JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
Can i open sharepoint site docx file url using word js api from word desktop/web addin ?
We have requirement to open a uploaded word document present in MS SharePoint site from word addin (desktop and web). Expectation is if document is present in MS SharePoint , open a link to docx file so user can collaborate simultaneously with other…
Microsoft 365 and Office | Development | Office JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
Multiselection in Outlook web add-in in Outlook Web/New Outlook with Unified manifest
Hello, We migrated our solution from a COM add-in to an Outlook Web Add-in (Office.js). As part of this transition, we also encouraged our clients to move to the new Outlook. Our add-in uses the Unified Manifest model. We are now trying to implement…
Microsoft 365 and Office | Development | Office JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
Howto bypass the "Import-only" restriction for Application permissions, or is a Service Account with Delegated permissions
I’m building a backend service to automate status updates in a Teams channel, but I’m hitting a consistent 403 Forbidden error when trying to POST a chatMessage. My app is registered in Entra ID with ChannelMessage.Send and Group.ReadWrite.All…
Microsoft 365 and Office | Development | Office JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
How to get selected chart element in Excel JS API
We need to read the data point when a user clicks on one of the parts of a bar chart or pie chart. Something like getSelectedChartElement() that points to the underlying cell range where the data point resides? Or a Chart event whenever a chart element…
Microsoft 365 and Office | Development | Office JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
Office.extensionLifeCycle.taskpane.setWidth() doesn't work on Web Word
Hello! I'm trying to use Office.extensionLifeCycle.taskpane.setWidth() to install initial width of my addin's taskpane like this: Office.onReady(() => { tr console.log(Office.context.requirements.isSetSupported('TaskPaneApi', '1.1')); …
Microsoft 365 and Office | Development | Office JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
Outlook Classic restricts Office.js network access
Hello, I am currently working on a Outlook add-in that applies the signature at the end of the body when the user starts composing an email or replies to another email. Currently I have two javascript files, one is the taskpane.js and the other is the…
Microsoft 365 and Office | Development | Office JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
Webextensions folder not getting included in base64 format of currently opened document.
Hi Team, We are facing issue where as part of requirement we need to convert existing document to base64 that needs to be passed as parameter to our backend API. We are storing some metadata related to our usecase using Office settings API which is…
Microsoft 365 and Office | Development | Office JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
Questions regarding Outlook Add-in validation with local endpoint
Hello, I’m currently working on an Outlook add-in with a manifest in JSON format that needs to access information available only on the local endpoint. Using a hosted server is not possible in this scenario. I have several technical questions regarding…
Microsoft 365 and Office | Development | Office JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
Unable to Deploy Add-in in Admin Center After Adding SSO Code
I created a Word add-in that requires SSO for necessary permissions. When I tested it in Word online, I successfully added my manifest without errors, and the functions worked correctly. However, upon uploading my manifest file to the Microsoft 365 Admin…
Microsoft 365 and Office | Development | Office JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
Microsoft 365 and Office | Development | Other
Building custom solutions that extend, automate, and integrate Microsoft 365 apps.
How can the embedded OneDrive File Picker handle lots of pre-selected source items?
We have implemented an HTML OneDrive v8 File Picker according to the docs by embedding an iFrame on the page with the end of the URL being _layouts/15/FilePicker.aspx and the configurations added as a filePicker search parameter. One of the…
Microsoft 365 and Office | Development | Office JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
Extract base64 content without using open() method
Problem Statement : There is a document which contains customXMLMappings, content controls, custom properties etc and it is a collaborative document which means it will have changes made by multiple people. The ask is to extract the base64 of this…
Microsoft 365 and Office | Development | Office JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
Outlook Office Add-in dropdown renders at top-left corner instead of near command button
I am developing an Outlook Office Add-in (Web Add-in using Office.js). My add-in has two sub-features: A Settings popup A Task pane for processing email data When the user clicks the Apps button inside an email, Outlook shows the list of installed…
Microsoft 365 and Office | Development | Office JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
doc.undo() works in Desktop version of Word but fails in the Online version
Problem Statement : There is a Word document which is being modified by multiple people, not simultaenously though(basically supports co-authoring). This includes all redlines, all comments, content controls, customXMLMappings etc. The requirement is to…
Microsoft 365 and Office | Development | Office JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
Insert shapes in Powerpoint Web does not reflect instantly
Hello, We are trying to add textboxes into presentation Slide Masters (Powerpoint). On Web (powerpoint online), it's noticed that after inserting textboxes to Slide Masters the change is not reflected instantly in the presentation, and it might not be…
Microsoft 365 and Office | Development | Office JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
Office add-in manipulate powerpoint headers/footers
Our main question is how we can manipulate headers and footers for a powerpoint file using office.js or another library/tehcnology available in the office add-ins context. We currently notice that there is no supported method in office.js. Is this…
Microsoft 365 and Office | Development | Office JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
compareFromBase64 does not work in Windows desktop Word and neither in Word online
Problem Statement : We have a requirement to compare the currently opened document with a second document(which has some additional changes). Current Approach : We are using the method compareFromBase64 to compare between the two documents via…
Microsoft 365 and Office | Development | Office JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
V W X Y Z v w x y z : only these letters are not being selected correctly using Select Case function in VBA.
V W X Y Z v w x y z : only these letters are not being selected correctly using Select Case function in VBA. not working for select case, using either the "_" or the ascii code, upper or lower case. Works for every other letter and number.…
Microsoft 365 and Office | Development | Office JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
Header image(s) broken in document after using Office.context.document.getFileAsync with Office.FileType.Compressed
I am trying a usecase where requirement to upload the open document via addin using REST API which accepts base64 of word document. I used Office.context.document.getFileAsync function passing input as "Office.FileType.Compressed". But the…
Microsoft 365 and Office | Development | Office JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.