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

Sort by: Updated
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.

Microsoft 365 and Office | Development | Office JavaScript API
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,033 questions
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 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,713 questions
Microsoft 365 and Office | Development | Office JavaScript API
Microsoft 365 and Office | Development | Microsoft 365 Publishing
Windows for business | Windows Server | User experience | PowerShell
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,310 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 315 Reputation points
commented 2025-10-22T13:46:45.9433333+00:00
Kinatyan Halaas 315 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 7,550 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 | Office JavaScript API
Microsoft 365 and Office | Development | Microsoft 365 Publishing
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 8,520 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 6,375 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 7,485 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
3 answers One of the answers was accepted by the question author.

Registered outlook add-in doesn't appear in new outlook windows app and on outlook web

Hello! I'm running into an issue trying to create a custom installed outlook addin. I used the yo office generator and I chose Office Add-in task pane project, typescript, outlook and Add-in only manifest. I executed the npm run start command and…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2025-09-22T15:05:18.0233333+00:00
Andrea Konomi 20 Reputation points
accepted 2025-09-24T07:10:21.9866667+00:00
Andrea Konomi 20 Reputation points
1 answer

Graph AP without userinteaction

To read all emails from a Microsoft 365 account using the Graph API, I want to implement this without user interaction and with a one-time configuration. Can you provide the necessary steps?

Microsoft 365 and Office | Development | Office JavaScript API
asked 2025-09-05T08:20:56.5166667+00:00
Sri Hari 20 Reputation points
commented 2025-09-10T07:43:27.09+00:00
TiNo-T 7,865 Reputation points Microsoft External Staff Moderator
1 answer

Troubleshooting custom keyboard shortcuts with Powerpoint add-in on Mac

Hi, I've followed the following guides to set up custom keyboard shortcuts for a Powerpoint add-in. It should all be ready to go. https://learn.microsoft.com/en-us/office/dev/add-ins/design/keyboard-shortcuts …

Microsoft 365 and Office | Development | Office JavaScript API
Microsoft 365 and Office | Development | Other
asked 2022-11-21T00:13:45.897+00:00
Alistair Gillespie 1 Reputation point
answered 2025-09-09T00:11:34.9566667+00:00
Aqlima Amani 0 Reputation points
1 answer One of the answers was accepted by the question author.

MS Graph: How to resolve : Forbidden - 403 - 191 ms Either the signed-in user does not have sufficient privileges, or you need to consent to one of the permissions on the Modify permissions tab

I am getting below error: Forbidden - 403 - 191 ms Either the signed-in user does not have sufficient privileges, or you need to consent to one of the permissions on the Modify permissions…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2025-09-04T13:32:02.16+00:00
Sri Hari 20 Reputation points
accepted 2025-09-05T07:05:55.3033333+00:00
Sri Hari 20 Reputation points
1 answer

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
commented 2025-09-04T11:11:02.6+00:00
TiNo-T 7,865 Reputation points Microsoft External Staff Moderator
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-29T07:14:54.6033333+00:00
TiNo-T 7,865 Reputation points Microsoft External Staff Moderator