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

Sort by: Updated
1 answer

How to find the issue for this Office.js addin error after updating?

Hi, After updating our Office.js add-in, several customers have reported encountering this error. The add-in was functioning properly prior to the update. The current work-around is for the customers to delete the WEF folder. After this, the add-in will…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2025-12-02T07:39:24.1+00:00
Sebastian Vasile 6 Reputation points
commented 2025-12-03T07:45:18.0666667+00:00
Dora-T 8,185 Reputation points Microsoft External Staff Moderator
2 answers

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
asked 2025-11-25T10:50:39.86+00:00
Andreas Davros 71 Reputation points
commented 2025-11-26T11:25:35.83+00:00
Michelle-N 8,840 Reputation points Microsoft External Staff Moderator
2 answers One of the answers was accepted by the question author.

How to get the content of a comment that has been clicked on ?

Hello, I am currently working on a Microsoft Add-In by using the Office js API and I need to retrieve the content of comments from a word document. I have been able to find how to retrieve the content of the comment when clicking on the text attached to…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2025-11-24T10:11:05.99+00:00
Ariel NORA 20 Reputation points
accepted 2025-11-24T17:13:10.5466667+00:00
Ariel NORA 20 Reputation points
2 answers

How to detect if an appointment in OnAppointmentSend event is a canceled meeting in Outlook Add-in?

We have an Outlook add-in that uses the OnAppointmentSend launch event. It works correctly for normal meeting sends, but we need to detect when the user is sending a cancellation for an existing meeting. Is there a way to determine from the event payload…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2025-11-23T15:13:30.6833333+00:00
Vinod Bhatt 0 Reputation points
edited an answer 2025-11-24T06:21:26.3033333+00:00
Teddie-D 8,640 Reputation points Microsoft External Staff Moderator
2 answers One of the answers was accepted by the question author.

What are the API options for retrieving full EML in an Outlook Add-in in mobile?

We are building an Outlook add-in which processes the full EML of the selected email. We have it working in Outlook web app and Outlook desktop app, however in the mobile app the add-in is failing because the necessary APIs are not supported in mobile…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2025-11-17T01:59:43.21+00:00
Doug Goldstein 20 Reputation points
edited a comment 2025-11-20T06:48:32.02+00:00
Teddie-D 8,640 Reputation points Microsoft External Staff Moderator
2 answers

I have bug in D365 mobile app for sales., It is JavaScript, and I can't find an emulator or method to test.

I have D365 form that works perfect in browser for D365 for sales for JavaScript in a button click. It is unresponsive however on mobile devices. I am using D365 Dynamics for Sales mobile app. I can not find emulator or good way to debug. I have tried…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2025-11-18T01:23:16.7166667+00:00
Jason Marshall 0 Reputation points
edited a comment 2025-11-19T05:32:20.35+00:00
TiNo-T 8,910 Reputation points Microsoft External Staff Moderator
1 answer One of the answers was accepted by the question author.

How Can i Make arrowhead line with powerpoint office365 javascript api?

안녕하세요! Hi, I’m building a PowerPoint Web Add-in with Visual Studio 2022 (Office.js). I provide a set of shapes/images so that internal employees can insert consistent templates. Basic shape/image insertion works. However, I need to draw a line with an…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2025-11-05T07:58:47.8433333+00:00
주 진규 20 Reputation points
accepted 2025-11-10T02:01:48.8133333+00:00
주 진규 20 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.

Exchange | Exchange Server | Management
Exchange | Exchange Server | Management
The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.
8,057 questions
Microsoft Copilot | Microsoft 365 Copilot | Development
Microsoft Security | Microsoft Authenticator
Microsoft Teams | Microsoft Teams for business | Other
Microsoft 365 and Office | Development | Office JavaScript API
asked 2024-06-24T18:33:20.09+00:00
estelle damster 15 Reputation points
commented 2025-11-08T17:51:10.5766667+00:00
Grecia Gonzalez 0 Reputation points
3 answers

how to export the list of email forwarding on O365 including all the mailbox(shared, live etc)

I tried to export the list in powershell, but i very less details, one of my friend export in some other way, he got some other users. Please do the needful.

Exchange Online
Exchange Online
A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.
6,791 questions
Windows for business | Windows Server | User experience | PowerShell
Microsoft 365 and Office | Development | Office JavaScript API
Microsoft 365 and Office | Development | Microsoft 365 Publishing
asked 2021-03-25T06:41:14.143+00:00
Gururaj Ravichandran 1 Reputation point
edited an answer 2025-11-07T09:50:53.18+00:00
Marco Quaresmini 5 Reputation points
1 answer

Office-js NPM package

The Microsoft Office-JS NPM at https://www.npmjs.com/package/@microsoft/office-js says "The NPM package associated with this repo is no longer officially supported." Does this mean the NPM package will no longer provide the latest source…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2025-10-31T01:31:36.9133333+00:00
Huff, Steve 0 Reputation points
edited an answer 2025-11-07T07:48:10.6866667+00:00
Jack-Bu 5,405 Reputation points Microsoft External Staff Moderator
1 answer

Automating Italian salary breakdowns in Excel using online calculation data

Hi everyone, I’m setting up an Excel payroll template for Italian employees where I want to automatically show net salary, tax deductions, and contributions once the gross salary is entered. Right now, I’m using data and reference values from , since it…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2025-10-07T22:27:21.9466667+00:00
Giuseppina rinaldi 40 Reputation points
edited the question 2025-10-28T11:34:44.4833333+00:00
Giuseppina rinaldi 40 Reputation points
1 answer One of the answers was accepted by the question author.

Teams custom app fails to load after integrating Azure AD authentica

I’m developing a custom Teams app that integrates with Azure AD for user authentication. The app worked correctly in the development tenant, but after adding Azure AD sign-in using MSAL.js, the app intermittently fails to load inside Teams with the error…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2025-10-22T11:48:15.4+00:00
Kinatyan Halaas 335 Reputation points
commented 2025-10-22T13:46:45.9433333+00:00
Kinatyan Halaas 335 Reputation points
1 answer

How to apply PowerPoint template (.POTX/.PPTX) to existing slides using Office.js API?

I am developing a PowerPoint Add-in using the Office JavaScript API. I want to apply a PowerPoint template (POTX or PPTX) to the user’s current presentation without adding or replacing slides — basically, I want to apply the new design/theme to the…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2025-10-08T14:56:51.2733333+00:00
Umair Shehzad 0 Reputation points
commented 2025-10-22T04:48:47.94+00:00
Dora-T 8,185 Reputation points Microsoft External Staff Moderator
1 answer

Office Add-in offline installation

Hi everyone, Many of our (enterprise) clients have blocked the Microsoft AppSource for their users and would prefer an application installer that does not require loading the add-in via AppSource. It would be great to also be able to deploy…

Microsoft 365 and Office | Development | Microsoft 365 Publishing
Microsoft 365 and Office | Development | Office JavaScript API
asked 2022-10-17T07:54:38.343+00:00
Johannes Boyne 21 Reputation points
edited a comment 2025-10-20T04:09:07.0433333+00:00
debug 0 Reputation points
2 answers One of the answers was accepted by the question author.

Excel Add-In read cell in another workbook

It does not seem to be possible to read the contents of another workbook using the Excel JavaScript API. It seems you only have access to the workbook where the Add-In is executing. Is that correct? I have read the section of the documentation “Work with…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2025-10-14T09:38:52.36+00:00
Shaun Pendrigh 20 Reputation points
edited an answer 2025-10-15T13:20:29.36+00:00
Gabriel-N 9,545 Reputation points Microsoft External Staff Moderator
1 answer

Always I am getting 401 error when I want to send mail through graph API, while it is generating token successfully

This is my node js code as below import axios from 'axios'; import { ConfidentialClientApplication, LogLevel } from '@azure/msal-node'; // Static configuration per your request const clientId = '****'; const clientSecret = '*******'; const tenantId =…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2025-10-07T16:35:42.8233333+00:00
Palash Samanta 0 Reputation points
edited a comment 2025-10-13T10:33:34.3166667+00:00
Vergil-V 7,220 Reputation points Microsoft External Staff Moderator
1 answer

How to apply PowerPoint template (POTX/PPTX) to existing slides using Office.js without replacing content?

Hi team, I’m developing a PowerPoint Add-in (taskpane app) using the Office.js PowerPoint JavaScript API. My goal is to allow users to apply uploaded PowerPoint templates (PPTX or POTX) from our backend to their currently open presentation — ideally…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2025-10-08T14:53:54.57+00:00
Umair Shehzad 0 Reputation points
commented 2025-10-13T07:01:59.0566667+00:00
Teddie-D 8,640 Reputation points Microsoft External Staff Moderator
1 answer

Issue with getAttachmentContentAsync when trying to fetch inline image attachment content

I am working on an outlook web add-in and encountered an issue with getAttachmentContentAsync. My goal is to retrieve all mail content, including inline attachments, when a mail is sent. Retrieving inline images upon sending the mail is the issue I am…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2025-10-03T13:40:54.63+00:00
Marjolein Bente 0 Reputation points
commented 2025-10-08T11:27:24.3166667+00:00
Marjolein Bente 0 Reputation points
1 answer One of the answers was accepted by the question author.

onMessageSendHandler re-executes after PromptUser override for inline attachments (Desktop Only)

Context: The issue occurs in an Outlook Mail Compose Add-in using the onMessageSendHandler function (which handles the ItemSend event). The code is adapted from the official documentation: "Automatically check for an attachment before a message is…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2025-10-07T13:54:29.5966667+00:00
Maxime.L 20 Reputation points
commented 2025-10-08T06:39:53.54+00:00
Maxime.L 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-09-24T11:20:42.4666667+00:00
Rocktim Rajkumar 0 Reputation points