1,079 questions with Microsoft 365 and Office | Development | Office JavaScript API tags

Sort by: Updated
0 answers

Cross tenant shared file download programmatically

Use case : I need to access files shared by a user in an external tenant programmatically. For getting user delegated token I have given files.read.all , and im usign microsoft graph node sdk , for accessing cross tenant files, even if the file was…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2025-08-29T03:11:09.6033333+00:00
Fahida VH 0 Reputation points
1 answer

Clarification of hostVersion and Office Build Version Equivalence for License Type Detection in Outlook Add-ins

I am developing telemetry to differentiate between volume-licensed and retail installations of Office 2016/2019 based on version information available in Outlook add-ins. We currently use Office.context.mailbox.diagnostics.hostVersion to capture the…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2025-08-26T09:38:55.23+00:00
Singh Rana, Devendra 20 Reputation points
commented 2025-08-27T06:36:12.4666667+00:00
TiNo-T 4,920 Reputation points Microsoft External Staff Moderator
1 answer One of the answers was accepted by the question author.

Theme apply on Microsoft Excel Web Addin.

I want to build a features which will fetch 4/5 theme details from a backend and when user will click on a particular colour palate then the theme should be applied on the current workbook. I was trying to apply the theme in current workbook but observed…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2025-08-21T12:58:35.1466667+00:00
Dipanjan Tripathi 20 Reputation points
accepted 2025-08-25T15:01:44.18+00:00
Dipanjan Tripathi 20 Reputation points
1 answer One of the answers was accepted by the question author.

Guidance on IE11 Support and User Detection for Outlook Add-in Migration to Angular 19

We are in the process of migrating our Outlook Add-in from AngularJS to Angular 19. Since Angular 12 and later versions have dropped support for IE11, we want to ensure a smooth transition for our users. Currently, we have checked for IE11 users on…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2025-08-21T16:59:46.6866667+00:00
Singh Rana, Devendra 20 Reputation points
accepted 2025-08-25T08:19:06.27+00:00
Singh Rana, Devendra 20 Reputation points
1 answer One of the answers was accepted by the question author.

If my account is deleted, will my office scripts within a Teams team also be deleted?

I've created multiple Office scripts for my organization, and I've shared these scripts with a Teams team. If my account is deleted, will these scripts on this site also be deleted? And if they are deleted, how can I prevent the scripts from being…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2025-08-20T14:38:21.1033333+00:00
Jesus David Marquez 20 Reputation points
accepted 2025-08-21T16:24:31.0133333+00:00
Jesus David Marquez 20 Reputation points
2 answers

Graph API /me/messages/{id} returns 404 for specific users (works for others)

I am reaching out regarding an issue we're experiencing with the Microsoft Graph API for certain users. We are able to successfully call the following endpoint to retrieve messages: GET https://graph.microsoft.com/v1.0/me/messages However, when we…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2025-07-31T17:55:58.4666667+00:00
Rocktim Rajkumar 0 Reputation points
commented 2025-08-19T12:16:58.0633333+00:00
Rocktim Rajkumar 0 Reputation points
5 answers

How to load jquery autocomplete dropdown box from an external WEB API

Good day everybody: I have an external web api which returns a label, value records needed for a client application app.MapGet("/AsyncAutocompleteErf/{search}", async (IErvenRepository request, string search) => { var data = await…

Developer technologies | ASP.NET | ASP.NET Core
Microsoft 365 and Office | Development | Office JavaScript API
Developer technologies | ASP.NET | Other
asked 2025-02-06T10:32:43.52+00:00
Jose Daniel Navarro Brito 61 Reputation points
commented 2025-08-19T10:54:22.17+00:00
Raymond Huynh (WICLOUD CORPORATION) 715 Reputation points Microsoft External Staff
1 answer One of the answers was accepted by the question author.

How to Safely Include Slashes in Graph API Requests for Outlook Event IDs

When developing an Outlook Office Add-in, event IDs are stored in a database after registration from Outlook. Subsequently, the web application queries the Graph API to retrieve event details using the endpoint me/events/{event-id}. A problem arises when…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2025-08-07T03:14:36.99+00:00
Shiro 20 Reputation points
commented 2025-08-19T07:53:39.6433333+00:00
Shiro 20 Reputation points
4 answers

How to get Json Data from an external WEB API to an JQUery autosearch text box end point

Hi everybody: I have an external minimal Web API that produces a JSON object ( array) as per below. app.MapGet("/AsyncAutocompleteErf/{search}", async (IErvenRepository request, string search) => { var data = await…

Developer technologies | ASP.NET | ASP.NET Core
Microsoft 365 and Office | Development | Office JavaScript API
Developer technologies | ASP.NET | ASP.NET API
asked 2025-01-10T16:24:18.3033333+00:00
Jose Daniel Navarro Brito 61 Reputation points
commented 2025-08-13T07:38:53.05+00:00
Raymond Huynh (WICLOUD CORPORATION) 715 Reputation points Microsoft External Staff
1 answer

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
asked 2023-03-26T02:23:14.3566667+00:00
Hilbrand Valham 0 Reputation points
commented 2025-08-12T10:38:08.2133333+00:00
Merve Ince 0 Reputation points
3 answers

Validate file content type for txt, log, JSON file in C#

public static bool IsFileValid(IFormFile file) { using (var reader = new BinaryReader(file.OpenReadStream())) { var signatures = _fileSignatures.Values.SelectMany(x => x).ToList(); // flatten all signatures to single list var headerBytes =…

Developer technologies | ASP.NET | ASP.NET Core
Microsoft 365 and Office | Development | Office JavaScript API
Developer technologies | .NET | Other
Developer technologies | ASP.NET | Other
Developer technologies | C#
asked 2025-01-08T17:16:17.0733333+00:00
Surajit Kumar Shah 0 Reputation points
commented 2025-08-07T02:48:24.16+00:00
Danny Nguyen (WICLOUD CORPORATION) 1,030 Reputation points Microsoft External Staff
16 answers

Outlook Add-in Fails to Update via Office 365 Admin Center Despite Passing Validation and Working Locally

I'm trying to update my Outlook add-in through the Office 365 admin center. The plugin manifest file I'm using was successfully used several months ago, and I was able to update the add-in without any issues at that time. I've made some minor changes -…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2025-07-30T22:46:21.6033333+00:00
Serhii Mytrokhin 15 Reputation points
commented 2025-08-06T14:41:54.11+00:00
Michelle-N 4,030 Reputation points Microsoft External Staff Moderator
1 answer

Vertical lines for scrollbar visible in desktop add-in when add-in section is resized

When i resize the add-in section in my excel desktop app these vertical lines are visible where the previous position of scrollbar was present. It works fine for the online excel spreadsheet issue only occurs in desktop application. I have tried clearing…

Microsoft 365 and Office | Development | Office JavaScript API
Microsoft 365 and Office | Development | Other
Microsoft 365 and Office | Excel | For business | Windows
asked 2024-07-08T07:33:58.1866667+00:00
Saloni Jagga 0 Reputation points
answered 2025-08-04T17:22:53.0633333+00:00
Matt 0 Reputation points
1 answer One of the answers was accepted by the question author.

hyperlink link to a PDF from within an Excel - automated email

Hi - Could you help please ? When a user clicks a hyperlink link to a PDF from within an Excel spreadsheet, instead of opening that PDF, the click should create an email draft with the target PDF attached. is this possible ? the PDF documents are stored…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2025-07-29T12:26:18.52+00:00
shez 40 Reputation points
accepted 2025-07-31T06:53:27.96+00:00
shez 40 Reputation points
1 answer

error code 500121 on my school account?

no matter what i do cannot get my school account logged in on my auth app. have googled and tried every video error code 500121 is all error i get.

Microsoft 365 and Office | Development | Office JavaScript API
Exchange | Exchange Server | Management
Microsoft Copilot | Microsoft 365 Copilot | Development
Microsoft Security | Microsoft Authenticator
Microsoft Teams | Microsoft Teams for business | Other
asked 2024-06-24T18:33:20.09+00:00
estelle damster 5 Reputation points
commented 2025-07-30T14:59:45.33+00:00
Levi 0 Reputation points
1 answer

Outlook Add-in: How to communicate from OnMessageSend event to an Angular task pane?

Hi everyone, I'm developing an Outlook add-in using Angular and the Office.js library. I'm facing a challenge with communication between the OnMessageSend event and my main application running in the task pane. My Goal I want to execute logic (e.g.,…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2025-07-22T18:12:10.0866667+00:00
Krystian Dawid 0 Reputation points
commented 2025-07-28T05:15:37.3733333+00:00
Dora-T 4,105 Reputation points Microsoft External Staff Moderator
1 answer One of the answers was accepted by the question author.

Is it possible for a Next.js web app to open Microsoft Word with a specific Word Add-in (built with React) on button click?

Hi everyone, I’m currently developing a web application using Next.js, and I also have a Microsoft Word Add-in that was built with ReactJS. I would like to ask: Is there any way for my web app to open Microsoft Word and automatically load this specific…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2025-07-13T16:04:41.9+00:00
Khoa 45 Reputation points
commented 2025-07-15T14:59:10.88+00:00
Khoa 45 Reputation points
1 answer

Default Width for OfficeJs Plugins not respecting default width set in the manifest

Default Width for OfficeJs Plugins not respecting default width set in the manifest. There are similar queries on Microsoft forums, where many users are requesting fix -…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2025-07-04T06:36:06.0966667+00:00
Rakibe, Himanshu [TECH] 0 Reputation points
commented 2025-07-09T12:18:07.8933333+00:00
Kudos-Ng 3,610 Reputation points Microsoft External Staff Moderator
0 answers

Request for Subresource Integrity (SRI) Hash Support for office.js CDN

Dear Microsoft Team, I hope this message finds you well. We are currently integrating the Office.js library as part of our Outlook Add-in and are referencing it via the official Microsoft CDN, as shown below: <script type="text/javascript"…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2025-07-09T11:14:42.42+00:00
Rocktim Raj 0 Reputation points
1 answer One of the answers was accepted by the question author.

office office-add-in insert ooxml error

insertooxml error

Microsoft 365 and Office | Development | Office JavaScript API
asked 2025-06-27T08:21:00.2233333+00:00
y jacky 20 Reputation points
accepted 2025-06-30T07:42:38.23+00:00
y jacky 20 Reputation points