5,768 questions
1
vote
2
answers
92
views
Get new named cell with Excel JS API
We're using Excel JS API to get changed on worksheets.
Is there an event to get new named cells?
The only way that I see is to store the named cell collection (using NamedItemCollection) & compare ...
0
votes
1
answer
56
views
Syncing EWS UpdateItem Changes to Compose Pane in Exchange On-Prem Outlook Add-in (Office JS ≤ 1.5)
I am working on an Outlook add-in for Exchange On-Premise accounts using Office JS, but since Exchange On-Prem only supports Office JS ≤ 1.5, many Office JS APIs are unavailable for certain tasks. As ...
0
votes
0
answers
86
views
office.js Addin using forMSGraphAccess resulting in Invalid Audience
i've spent hours researching without success.
We have an outlook addin that uses the on-behalf-of flow by using the getAccessToken() function.
For this we used office.js, not the MSAL library.
Since ...
0
votes
0
answers
82
views
Custom events for Office Scripts?
Per organization policies, I can't develop Excel add-ins. I can use Office Scripts, but there are no event handlers for Excel objects via this API. Is there any use and/or is it even possible to ...
0
votes
1
answer
75
views
Word Add-In Checkbox Content Controls with office.js
I have a Word DOCX with several Content Controls in it which I want to access via JS. For this, I have the following routine:
await Word.run(async (context) => {
const doc = context.document;
...
0
votes
0
answers
61
views
Office Js Addin for Word translation
I want to have a addin that loops through the paragraphs in a document, does an API call to a translation service, returns a new paragraph, and inserts this into word again.
I have gotten it to do ...
-1
votes
1
answer
168
views
Enabling Outlook Add-ins for Office 365 Shared Mailboxes: Current Limitations and Workarounds
I am developing Outlook add-ins (formerly Apps for Office) and have successfully deployed them globally for my Office 365 tenant and individually via Settings > Manage Add-ins. However, the add-ins ...
0
votes
0
answers
90
views
DialogParentMessageReceived not triggering event handler after MessageChild method used to send message to dialog
Working on Outlook Add-in to control ItemSend Event in order to modify message and/or attachments before its sent. It does not trigger event handler to read message that was sent using MessageChild ...
0
votes
1
answer
105
views
Office Word Addin doesn't load task pane
I am really struggling to understand why my task pane is not showing up in Microsoft word. The button to trigger the taskPane appears under "AddIns" as expected but clicking it does not open ...
0
votes
0
answers
97
views
Angular V19 Office-Js Excel Add-in displayDialogAsync zone.js error
I am trying to create an Office 365 Addin using Angular v19 and MS Excel for a simple modal dialog example.
I believe I have installed the appropriate dependencies:
package.json
@types/office-js
@...
0
votes
1
answer
67
views
How to prevent sideloading a manifest.xml on Excel for the Web?
I have an MS. Office Excel add-in and I use it via sideloading of the manifest.xml file.
it works and everything is good, until recently I've noticed that there are some issues when users try to ...
1
vote
0
answers
106
views
Tracking prevention access blocked for office.js - excel add-in
enter image description here
When loading my excel add-in, I see that office.js gets blocked from the edge browser inside of excel, see screenshot. How to prevent this from happening? I tried to time ...
0
votes
1
answer
94
views
How can I include an OfficeGroup of buttons in a CustomTab in my Office-js Excel Add-In?
I am creating an office-js Excel Add-In and I want to have a custom tab on the ribbon bar. On this custom tab, I want the "Calculation" group from the Formulas tab to appear in this custom ...
0
votes
1
answer
34
views
Select tab in ribbon in Word Web add-in
Is there a direct way of selecting a specific tab in the ribbon using the Word JavaScript API? (Specifically, the Review tab.)
I don't see anything in the Ribbon or Tab pages of the API documentation.
...
1
vote
1
answer
99
views
Can we disable the Outlook warning when add-in closes the message from the ItemSent event?
When testing our Outlook web add-in last week, we started seeing this warning when our add-in tries to close a message being composed:
Our add-in retrieves all the information of a message to later ...
0
votes
0
answers
21
views
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 ...
0
votes
0
answers
35
views
After initial load of excel add-in plugin, custom function fails with #VALUE
I'm developing an excel add-in plugin which has some custom functions.
I'm guessing due to the size of formula.js file (16MB) excel fails to completely fetch and resolve the custom functions and ...
0
votes
0
answers
51
views
Word Addin JS RichAPI /General exceptionerror when using getText() for paragraph
await Word.run(async (context) => {
const document = context.document;
const body = document.body;
const paragraphs = body.paragraphs;
paragraphs.load({ $all: true });
...
0
votes
0
answers
77
views
Office.context.mailbox.item.saveAsync fails during OnSend function on Outlook for web/New Outlook
I have an Add-in created for Outlook Web which adds headers to emails in order to send them securely. It operated both through Task Pane and on the OnSend functionality of Outlook Web.
When pressing ...
0
votes
1
answer
73
views
Office Word Add-In ExecuteFunction displaying commands.html instead of running the function
I'm new to Office Add-ins so this might be a trivial mistake. For this Typescript React Add-in I have created a Context Menu Extension Point that on click is supposed to run a custom function ...
0
votes
1
answer
99
views
Need a sample for using displayNewMessageForm and addFileAttachmentFromBase64 together
I'm writing an outlook add-in and need to create a new email with displayNewMessageForm and add an attachment. The problem is the URL to the attachment is protected so I need to download the file and ...
1
vote
0
answers
65
views
Office.js | Comments not showing immediately after adding through Office.js
I am building a word add-in, one of the main functions is that it can insert comments in specific parts of the document. The whole thing works well when used in locally installed Word, but as soon as ...
-1
votes
1
answer
187
views
Office Script return multidimensional array
Can you help me, how can i return a function in office script that returns an array with: a mail, and 2 array of row ranges:
the return i need is (if possible )
[["[email protected]"],["...
0
votes
0
answers
63
views
What should my webpack.config.js production deployment location be
My Excel addin webpack.config.js file line const urlProd has a comment // TODO: CHANGE THIS TO YOUR PRODUCTION DEPLOYMENT LOCATION. I'm not sure if this should point to my taskpane.html on my blob ...
0
votes
0
answers
34
views
Navigation bar apps (Reorder apps) implementation in Outlook for mobile (IOS) and OfficeJS
We are looking for a way to add a non-contextual addin to our Outlook for mobile OfficeJs plugin. This is a screenshot of some possible places:
Notice that there is a Youtube app which is a 3rd party ...
0
votes
1
answer
55
views
How to Retrieve Logs from %temp%\OfficeAddins.log.txt and Display Them in an Excale Add-in Side Panel
I have developed an Office JavaScript Excel add-in that provides live product pricing using custom streaming functions. The office add-in javascript-only function is designed to log errors in a file ...
1
vote
0
answers
35
views
Can Office Add-Ins use OneDrive API natively?
Is it possible to operate OneDrive files, without downloading them? (like in google script)
In google script, to find a file in a google drive folder,
and then open it as document, you do this:
const ...
0
votes
1
answer
116
views
Excel Office Add-Ins manifest.xml doesn't like namespace prefixes
When building Excel Office Web Add-Ins, a manifest.xml file is required to describe the service.
Here is a simple one that opens a Taskpanel in Excel:
<?xml version="1.0" encoding="...
1
vote
0
answers
35
views
OfficeJS API: Tracked Changes and File Comparison
I am currently using the compare() function to compare two files, and when the changes appear on the Word side, I want to use getTrackedChanges() to retrieve those changes. However, when I log it ...
0
votes
0
answers
38
views
Office.js Excel Startup Function
I have a custom function file (functions.js), which is used to define the functions, but also at the end of the file, I call the following code
Office.initialize = async function () {
console.log(&...
1
vote
0
answers
68
views
Excel Office.js: How to preserve custom formula text in the formula bar when batch-updating cells?
I’m building an Excel add-in using the Office JavaScript API. I have custom formulas like =PMPBK(...) that work fine if I rely on Excel’s @customfunction approach. The user sees the formula in the ...
1
vote
0
answers
31
views
Is it possible to calculate built in array functions using the Office.js API?
I'm trying to write an addin that takes a formula, parses it and then calculates the value of the formula. This all works for formulas that do not use ranges as we can use the Excel.Functions class to ...
0
votes
0
answers
83
views
Custom XML Parts in Word Online gets removed
I have a Word document that contains Custom XML Parts, and it works perfectly when opened in the Desktop version of Word. Using Office.js, I can successfully retrieve the XML parts with the following ...
0
votes
0
answers
23
views
Office.js Excel range.insert() is moving user viewport to A1
I have a simple function on context menu option clicked which gets passed the active cell address, eg: F81, from the user and inserts a row below.
export const insertRowBelow = async (address) => {
...
0
votes
0
answers
63
views
Load sync error while using PowerPoint Javascript API
I am trying to add a basic textbox/Geometric shapes into the PowerPoint on click of a button (using Microsoft Add-ins) . I am going through this document provided by Microsoft - Text in shapes.
It ...
0
votes
0
answers
52
views
how to send mail with EWS api in office addin
I am currently developing an Outlook add-in designed to send phishing and spam reports using the makeEwsRequestAsync method. However, I am encountering a persistent error: 'The remote server returned ...
0
votes
0
answers
86
views
Refused to load the script 'https://appsforoffice.microsoft.com/lib/1.1/hosted/office.js' because it violates the following CSP directive
Tried running office.js I am using react js
Tried accessing sourcelocation default value after build but got the above error while doing so. Got similar issue for style sheet as well.
Refused to load ...
0
votes
0
answers
59
views
How do I multiple an Excel Range by 1 using Office Script?
How can I multiple the selected range in Excel using Office Script by 1?
I'm trying to use the Excel trick of converting dates and numbers that aren't dates and numbers into being so by multiplying by ...
0
votes
0
answers
40
views
Precision editing a Word document from MS Word Add-in
I am implementing a precision editing feature for my Microsoft Word Add-in, but can't figure out how to edit a part of a range without making changes to the entire range.
For example I can get each ...
0
votes
0
answers
33
views
Which Microsoft API is utilized in while consuming function acquireTokenOnBehalfOf of SDK "@azure/msal-node"?
We are building a web-based, JavaScript Outlook Add-In which is required to call Microsoft Graph APIs to access the Outlook's user's emails and attachments.
The authentication process is being ...
0
votes
0
answers
38
views
What do "Protected Web API" refer in Microsoft Graph SSO Authentication Flow
We are building a web-based, JavaScript Outlook Add-In which is required to call Microsoft Graph APIs to access the Outlook's user's emails and attachments.
The authentication process is being ...
0
votes
0
answers
39
views
The email signature block is not loading with my Add-In
I’m working on developing my first Add-In for Outlook 365/Windows 10. In theory, it’s quite simple—it’s a drop-down menu with two options. Each option opens a new email and loads a different template, ...
0
votes
0
answers
37
views
Accessing and Manipulating Metadata in PowerPoint with Office-JS
I’ve been exploring ways to access and manipulate metadata in PowerPoint, particularly Custom Properties. While I’ve come across the option to use Tags, they don’t seem to integrate well with Office-...
0
votes
0
answers
57
views
vs code debugger is not recognizing any breakpoints, nor is it logging any console.log messages
My vs code debugger is not recognizing any breakpoints, nor is it logging any console.log messages. The web inspector is working, but the vs code debugger is not.
I've tried editing launch.json and ...
0
votes
1
answer
82
views
Change color of svg icon through powerpoint web add-in
I'm developing a PowerPoint web add-in using Office.js and am having difficulty changing the color of an icon inserted into a slide. The icon is in SVG format, but I can't access the required ...
0
votes
1
answer
82
views
Draw a diagonal line in PowerPoint using Office.Js API
I hope you are well. I am facing a strange issue in Office.JS API for PowerPoint. My purpose is simple, I want to draw a diagonal line (front up), but I cannot. In the below pic, you can see it's top-...
0
votes
1
answer
102
views
After New Outlook recent updates, Outlook Add-ins behaves unexpectedly showing broken UI and Confusing Dialog
I have developed Outlook Add-ins and released it in production. Everything is working fine as expected. However in the past few days, there are unexpected behaviors, after clicking Send button, Add-...
0
votes
0
answers
50
views
Get query params of powerpoint-web from microsoft add-ins
I am redirecting user to the microsoft web page from my react app and passing extra query params with it (myValue) something like
oneDrive.live.com/extraCode/Doc.aspx?resid=A&cid=B&myValue=...
2
votes
0
answers
95
views
Quick auto-closing popups when using Nested App Authentication (NAA) [closed]
I'm trying to implement Nested App Authentication to transition my outlook add-in away from using legacy exchange tokens. I'm successfully able to get a valid graph API token, but only accompanying ...
1
vote
0
answers
46
views
Word Add-in - How to Include Custom Properties in OOXML with Office.js API
I'm using the Office.js client API to add a custom property key to a Word document through context.document.properties.customProperties. However, when I export the document to OOXML format using ...