An Office service that supports add-ins to interact with objects in Office client applications.
1,134 questions with Microsoft 365 and Office | Development | Office JavaScript API tags
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
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
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.
What is the relation between Office.AutoShowTaskpaneWithDocument and Office.addin.setStartupBehavior+Office.addin.showAsTaskpane
In investigating auto-open for our add-in, we found two different routes through which to ensure auto-open. They seem to be able to perform similar features through an entirely different way and API. The first one is documented here:…
Microsoft 365 and Office | Development | Office JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
insertWorksheetsFromBase64 works in Excel Desktop but fails in Excel for the Web (Office.js)
Where importing worksheets using Office.js works correctly in Excel Desktop, but fails when running the same code in Excel for the Web. I’m using the following approach to insert worksheets from a Base64 file: const workbook = context.workbook; const…
Microsoft 365 and Office | Development | Office JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.