1,049 questions with JavaScript API tags

Sort by: Updated
1 answer

Using Microsoft 365 Defender with GCC-HIGH endpoint

Hello, We are attempting to connect to Microsoft 365 Defender using API requests. We've tried both the device code flow and the client credentials flow. Since our tenant is GCC-HIGH, we have ensured that our requests use the correct resource and scope…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,049 questions
asked 2025-02-27T09:49:45.9433333+00:00
itay4 56 Reputation points
answered 2025-03-11T09:24:20.92+00:00
itay4 56 Reputation points
0 answers

How to implement paste with destination formatting using Office JS API

Hi, I am trying to implement a cross application AddIns functionality where user can select some Excel data and paste in Word. I want to preserve all the source formatting as how the Word allows to do using Paste with keep source formatting option. …

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,049 questions
asked 2025-03-11T07:12:05.8066667+00:00
Rahul Kumar 0 Reputation points
0 answers

Office Scripts : Chart Data Labels "Values From Cells

I am trying to create an Automate Script in Excel that will generate and format chart. I am getting close, but I can't figure out how to set Data Label values. I want the same functionality as the Format Data Label/Label Options/Vale From Cells as…

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
2,175 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,049 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
4,313 questions
asked 2024-09-30T20:07:14.6433333+00:00
Tim Smith 0 Reputation points
commented 2025-03-10T17:54:42.54+00:00
Al Shahriar 0 Reputation points
1 answer

Retrieving text from a table in PowerPoint

How can I retrieve text from a table in with the JS API in PowerPoint? The usual ways fails, as it is not a real text field. Thank you for your answer!

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,049 questions
asked 2025-03-03T12:03:34.7766667+00:00
Simon Paul 0 Reputation points
answered 2025-03-06T22:56:33.86+00:00
Ester Bergen 0 Reputation points Microsoft Employee
2 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…

Outlook
Outlook
A family of Microsoft email and calendar products.
4,505 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,049 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
4,313 questions
asked 2025-01-31T16:53:03.2333333+00:00
Max Saraev 20 Reputation points
accepted 2025-03-04T08:40:12.2266667+00:00
Max Saraev 20 Reputation points
0 answers

Background Color of a Slide

How can I get the background color of a slide or the presentation theme? I cannot find such an option in the documentation. For example, most presentations (including the standard one) have a white bg. But some have a different color, I want to get…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,049 questions
asked 2025-03-01T21:53:10.83+00:00
Simon Paul 0 Reputation points
commented 2025-03-04T02:20:50.33+00:00
Jim J 0 Reputation points
0 answers

await context.sync not functioning properly for word JS API

I am using the following code- await Word.run(async (context) => { const selectedRange = context.document.getSelection(); selectedRange.load(); await context.sync(); // Insert Content Control const cc =…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,049 questions
asked 2025-03-03T09:19:30.59+00:00
Adhirath Naruka 0 Reputation points
edited the question 2025-03-04T01:06:21.25+00:00
Emi Zhang-MSFT 28,666 Reputation points Microsoft External Staff
0 answers

JScript issues with Win11 24H2: per-application "JScriptReplacement"?

After Windows11 24H2, there are many compatibility issues with JScript engine as reported in other threads. There is a known workaround in the registry (per system or per user) using the JScriptReplacement=0. But, is there a per-application workaround…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,049 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
11,039 questions
asked 2025-02-03T11:04:28.85+00:00
Davide Capodaglio 0 Reputation points
commented 2025-02-19T13:18:38.67+00:00
Davide Capodaglio 0 Reputation points
0 answers

Duplicated outlook custom addin and cannot be used

I am seeing duplicated custom addins on my device (web outlook, new outlook windows) and none of it works. It works for my collegue's account on his laptop but not for mine. What might be the issue? Manage your addin page: I cannot delete the two addins…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,049 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
4,313 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
5,649 questions
asked 2025-02-18T19:44:26.4233333+00:00
Yuxuan Shan 0 Reputation points
0 answers

How to Retrieve Local and Web Paths of an Excel Workbook from OneDrive using JavaScript API

A OneDrive folder has been synchronized on a local machine, allowing workbooks to be opened directly from this folder. The local and web paths can be obtained using the Info => Copy path and Info => Copy local path options, as highlighted in the…

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
2,175 questions
OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
1,322 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,049 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
4,313 questions
asked 2025-02-18T16:52:25.0666667+00:00
Kashif Bashir Bhatti 36 Reputation points
2 answers One of the answers was accepted by the question author.

How to setup test environment to test Outlook js addin on IOS platform?

We have a cloud solution Outlook js Addin which is supported on multiple platforms. We need to do automation testing on Outlook js Addin on IOS platform. We are looking for Automation Testing environment setup to test the addin. For IOS, Is it possible…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,049 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
4,313 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
5,649 questions
Microsoft Intune iOS
Microsoft Intune iOS
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.iOS: An Apple mobile operating system.
260 questions
asked 2025-01-23T11:10:59.4633333+00:00
Amulya K R 26 Reputation points
answered 2025-02-14T08:59:18.9766667+00:00
Maju Madhusudanan 6 Reputation points
4 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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,793 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,598 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,049 questions
asked 2025-02-06T10:32:43.52+00:00
Jose Daniel Navarro Brito 61 Reputation points
commented 2025-02-14T05:57:12.5533333+00:00
Ping Ni-MSFT 4,890 Reputation points Microsoft External Staff
0 answers

PowerPoint Content add-in resizing issue during load

We are currently developing a PowerPoint content add-in and have encountered an unusual behavior during presentation mode. When a slide containing the add-in is displayed for the first time, it initially appears at a smaller size before resizing to its…

PowerPoint
PowerPoint
A family of Microsoft presentation graphics products that offer tools for creating presentations and adding graphic effects like multimedia objects and special effects with text.
334 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,049 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
4,313 questions
asked 2025-02-13T09:16:03.8566667+00:00
Szabolcs Czinege 0 Reputation points
0 answers

Word Addin JS RichAPI /General exceptionerror when using getText() for fetching paragraphs

await Word.run(async (context) => { const document = context.document; const body = document.body; const paragraphs = body.paragraphs; paragraphs.load({ $all: true }); let listItems = []; let paragraphText = {}; …

Word
Word
A family of Microsoft word processing software products for creating web, email, and print documents.
960 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,049 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
4,313 questions
asked 2025-02-12T04:45:53.65+00:00
Rathan K 0 Reputation points
0 answers

Based on the presence of specific custom properties or keywords, we aim to disable Word's default 'Save,' 'Save As,' and 'Share' options to prevent users from saving or sharing the document locally.

Is it technically possible to achieve the following using Office.js in a Word add-in? We want to add custom properties (such as document IDs and metadata) to Word documents opened via our add-in. Based on the presence of specific custom properties or…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,049 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
4,313 questions
asked 2025-02-10T09:39:02.47+00:00
Mustafa Kanorwala 0 Reputation points
edited the question 2025-02-11T02:30:28.3233333+00:00
Emi Zhang-MSFT 28,666 Reputation points Microsoft External Staff
0 answers

Java script error

Its been more than a week my laptop had this idk what happen, can someone help me?

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,049 questions
asked 2025-02-09T09:35:53.2666667+00:00
Qyanu RAYY 0 Reputation points
3 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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,793 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,049 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
395 questions
asked 2025-01-10T16:24:18.3033333+00:00
Jose Daniel Navarro Brito 61 Reputation points
commented 2025-02-07T08:40:44.0433333+00:00
Ping Ni-MSFT 4,890 Reputation points Microsoft External Staff
0 answers

Detecting CRLF with Javascript

Hello everyone and thanks for the help in advance. I am working with an Asp.Net Core page that accepts the data into a <textarea> from a QR code scanner. When the scanner sends the data to the page, there is clearly some time of hidden line break…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,049 questions
asked 2025-02-06T20:32:23.3366667+00:00
Kmcnet 1,006 Reputation points
2 answers One of the answers was accepted by the question author.

Can you differentiate between shared mailbox and delegate mailbox using OfficeJS API or Microsoft Graph API?

Is it possible to distinguish between shared mailbox or delegate mailbox using OfficeJS API or Microsoft Graph API?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,240 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,049 questions
asked 2023-11-24T09:28:41.3733333+00:00
Diksha Yadav 101 Reputation points
accepted 2025-02-06T11:48:08.2066667+00:00
Diksha Yadav 101 Reputation points
0 answers

CRM 2011 Dialog Code and Modern Browser Issues

CRM 2011 uses window.showModalDialog and window.showModelessDialog, which don't work in modern browsers like Chrome and Edge. The code also uses window.parent, which should be updated to window.postMessage. Questions: How to replace…

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
5,768 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,049 questions
Windows 10 Compatibility
Windows 10 Compatibility
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Compatibility: The extent to which hardware or software adheres to an accepted standard.
493 questions
asked 2025-02-05T13:06:41.0566667+00:00
Khaled, Majed 0 Reputation points