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

Sort by: Updated
2 answers

Unified-manifest personal tab: host iframe stays at about:blank in Outlook until an add-in task pane is opened

Centrally deployed unified-manifest app with a staticTabs personal tab (scopes: ["personal"], context: ["personalTab"]). Manifest schema 1.20, @microsoft/teams-js 2.55.0 — both above the documented minimums (1.13 / 2.19.0). In Outlook…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2026-09-08T15:07:18.84+00:00
bertrand soual 0 Reputation points
edited the question 2026-09-08T21:11:46.0833333+00:00
Clover-L 25 Reputation points Microsoft External Staff Moderator
0 answers

How to deploy outlook template after insert data and use data info in subject and body

hi All... I have some question here. 1 have text box, drop down, check box and a button. Data Input TxtBox Data Input : Animal Drop down Input : Veterinar Dept Button check box on : send email Button to insert data When I click Button and check on, data…

Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.

11,816 questions
Microsoft 365 and Office | Development | Office JavaScript API
Developer technologies | ASP.NET Core | Other
asked 2023-03-03T04:53:45.5+00:00
y.ari 0 Reputation points
4 answers

Microsoft Graph API – Retrieving Users' Working Hours via Service Principal

Hello Microsoft Team, we use Service Principle to create events in Outlook. Now we want to extend our SP, so that we can request a working hours for users in our tenant. The endpoint we want to use: GET /users/{id |…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2026-09-04T13:33:46.4766667+00:00
Karmazina, Nataliia 0 Reputation points
answered 2026-09-05T10:00:28.1633333+00:00
Vasil Michev 127.8K Reputation points MVP Volunteer Moderator
1 answer

In Word Add-In using the JS API, how can i update a text by adding/removing certain parts of paragraph?

I am developing a Microsoft Word add-in using the Office JavaScript API. I need to replace the text inside an existing content control. For example: Current text: Payment needs to be completed in 70 days. New text: Payment needs to be completed in 30…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2026-09-02T15:04:04.9333333+00:00
Rajat Bharadwaj 5 Reputation points
answered 2026-09-02T19:05:13.75+00:00
Allan Solomon Mejia 7,835 Reputation points
1 answer

Office Add-in Yeoman Setup: Node Version Errors and Office.js API Failures

I used the Microsoft documentation for the Yeoman generator to create and debug an Office Add-in for Word on the web: Yeoman Generator for Office Add-ins. Initially, I encountered multiple dependency and package-version errors related to Node.js modules.…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2026-08-25T14:33:46.8033333+00:00
Faizan Mohammed 0 Reputation points
commented 2026-08-31T03:50:03.47+00:00
Aetherin 1,385 Reputation points Independent Advisor
1 answer

compareFromBase64 method now shows source document pane and revisions pane

We have a Word addin where we are using compareFromBase64 to import a new file over to an existing file so that all changes done can be viewed in one single window. This was working fine earlier. A few days back we noticed that Word desktop application…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2026-08-17T17:59:53.0533333+00:00
RahulK 25 Reputation points
commented 2026-08-18T13:25:49.44+00:00
Julie Huynh 3,080 Reputation points Independent Advisor
2 answers One of the answers was accepted by the question author.

NoBootJs Error - Outlook Web App Fails to Load JavaScript on Laptop Only

Problem Description: I am experiencing a critical issue accessing Outlook.com on my laptop that has persisted for multiple days. The same account works perfectly on my mobile phone, confirming this is device-specific. Error Details: Error Code:…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2026-03-20T09:17:43.2366667+00:00
Walid Mensi 40 Reputation points
answered 2026-08-03T17:41:39.7066667+00:00
ALBERTO APARECIDO PESCI 0 Reputation points
1 answer

Supported way to deep-link to a specific Word comment in a SharePoint document

We are developing a Word Office Add-in for documents stored in SharePoint Online. We need to generate a URL that opens a document in Word Online and navigates directly to a specific clause or paragraph. Environment SharePoint Online Word Online and…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2026-07-31T07:06:17.04+00:00
Rahul Kumar 0 Reputation points
answered 2026-07-31T08:01:00.8966667+00:00
Ana Le 2,345 Reputation points Independent Advisor
1 answer

Need help with java script

Private Sub WaitForBrowser(ByVal IE As Object, _ Optional ByVal timeoutSeconds As Long = 30) Dim startTime As Double Dim pageReady As Boolean startTime = Timer Do DoEvents pageReady = False …

Microsoft 365 and Office | Development | Office JavaScript API
asked 2026-07-28T12:23:50.98+00:00
Lakshmi Polisetti 20 Reputation points
edited the question 2026-07-29T17:39:17.27+00:00
Lakshmi Polisetti 20 Reputation points
1 answer

onMessageSend add-in completes successfully but email with SharePoint cloud attachment drops to Drafts with "attachments failed to upload" in New Outlook for Windows — occurs frequently in Reply/Forward

Summary I have an Outlook add-in that classifies emails on send by injecting a classification banner (header and footer) into the message body via body.getAsync / body.setAsync during the onMessageSend event. The add-in does not interact with attachments…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2026-07-22T10:39:46.72+00:00
Ashish Pal 0 Reputation points
commented 2026-07-23T13:06:55.69+00:00
Michelle-N 20,735 Reputation points Microsoft External Staff Moderator
1 answer

Bookings API: POST /appointments returns HTTP 500 UnknownError with empty message (application permissions)

Subject: Graph API — POST /solutions/bookingBusinesses/{id}/appointments returns HTTP 500 UnknownError with empty message Hi, We are building a custom booking flow against the Microsoft Bookings Graph API using application permissions (client…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2026-07-18T17:41:09.3066667+00:00
Kayahan Yilmaz 0 Reputation points
commented 2026-07-21T03:55:21.1933333+00:00
Anonymous
1 answer

"Forbidden" response on trying to create subscriptions using https://graph.microsoft.com/v1.0/subscriptions/

Hi Team, When attempting to create subscriptions in our cloud environment using the API endpoint https://graph.microsoft.com/v1.0/subscriptions/, we receive a "Forbidden" response. However, when we execute the same request through Bruno, it…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2026-07-09T19:54:21.3233333+00:00
Mahesh Kurucheti 76 Reputation points
edited the question 2026-07-10T06:54:23.69+00:00
Anonymous
3 answers

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
asked 2026-02-27T09:00:10.9633333+00:00
Anonymous
answered 2026-07-06T16:43:45.15+00:00
Yuri Leontyev 0 Reputation points
3 answers One of the answers was accepted by the question author.

535 5.7.139 Authentication unsuccessful

We are receiving the following error using the Office 365 SMTP server to send mails: 535 5.7.139 Authentication unsuccessful, the request did not meet the criteria to be authenticated successfully. Same issue with MFA (+ App password) and without…

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,199 questions
Microsoft 365 and Office | Development | Office JavaScript API
asked 2021-08-13T11:12:53.717+00:00
Maurice Wegner 51 Reputation points
commented 2026-06-26T03:52:45.7066667+00:00
Anderson Hernández 0 Reputation points
3 answers One of the answers was accepted by the question author.

Availability of OnMessageReadWithCustomHeader for Web and New Outlook on Windows

Hello, I would like to know when the OnMessageReadWithCustomHeader events will be available for Outlook on the web and the new Outlook for Windows. This feature is essential for our workflow, and we would appreciate any insights on its expected rollout…

Microsoft 365 and Office | Development | Other
Outlook | Windows | Classic Outlook for Windows | For business
Microsoft 365 and Office | Development | Office JavaScript API
asked 2025-01-31T16:53:03.2333333+00:00
Max Saraev 25 Reputation points
answered 2026-06-18T09:44:06.1033333+00:00
1 answer

Office.js Concern about select multiple email

Hi I'm trying to build an add-in for Outlook. Mine only support to process 1 email at a time. I'm using getSelectedItemsAsync to get selected email. When trying to determine multiple selection to show a clear error message, relied on result of…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2026-06-12T03:11:09.2866667+00:00
Dự Nguyễn Trọng 0 Reputation points
commented 2026-06-15T14:39:32.6233333+00:00
Michelle-N 20,735 Reputation points Microsoft External Staff Moderator
1 answer

Word Online insertComment API error NotAllowed

Inserting comments via API (in JS, Range.insertComment) was consistently working in Word Desktop but consistently failing in Word Online. According to…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2026-06-03T02:28:49.7633333+00:00
TJ Jann 0 Reputation points
commented 2026-06-05T02:49:45.62+00:00
Anonymous
1 answer

how to filter extact word

Hello In my aspx page i have one texbox one gridview and im using this code to filter gridview in Client Side but whenever i type my word it should bring all match data only not like For example I have Apple And Apple USA when i give Apple It should show…

Developer technologies | ASP.NET Core | Other
Microsoft 365 and Office | Development | Office JavaScript API
asked 2023-08-03T07:27:02.5133333+00:00
RAVI 1,076 Reputation points
answered 2026-06-03T23:29:06.2333333+00:00
Fred Osifelo 0 Reputation points
1 answer One of the answers was accepted by the question author.

Can a colleague run my Office Script in Excel if I shared it with VIEW only access?

I shared my Office Script for Excel with a colleague using VIEW ONLY access. Will she be able to RUN this script on a new workbook of her own?

Microsoft 365 and Office | Development | Office JavaScript API
asked 2026-05-27T19:04:28.0233333+00:00
Heather Seeno 60 Reputation points
accepted 2026-05-29T13:59:00.3133333+00:00
Heather Seeno 60 Reputation points
2 answers

Word API returns outlineLevel = 10 for first heading paragraph inside Content Control regardless of heading style

We are using the Word JavaScript API for section/content control hierarchy processing. While creating a section inside a content control, the first line/paragraph inside the content control is not being identified correctly by the Word API. If the first…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2026-05-18T03:58:04.4133333+00:00
Koduri Santosh 0 Reputation points
commented 2026-05-18T23:48:58.9533333+00:00
Anonymous