Questions tagged [office-js]

OfficeJS is the new JavaScript extensibility model for Microsoft Office client applications. You can extend Office applications that run on Windows, web, iOS, and the Mac. This model is applicable to Office client applications starting with Office 2013. Please read the tag info for additional ...

0
votes
0answers
2 views

In OfficeJS if we use the addFileAttachmentAsync function for multiple files, the callback runs only for one

The basic implementation of the addFileAttachmentAsync is as follows: Office.context.mailbox.item.addFileAttachmentAsync( fileURL, selectedAttachment.name, {}, (result) => { console....
0
votes
0answers
14 views

Excel crashing problem - How to study why Excel is crashing?

We are doing Excel JavaScript add-ins development and testing. Excel keeps crashing 1-2 times per day randomly. It may crash with action from JavaScript Pane or without it just using other Excel ...
0
votes
0answers
9 views

OnSend does not work in the outlook web app new design update (09-2018)

It is stated that in the new design update of the Outlook Web App: https://techcommunity.microsoft.com/t5/Outlook-Blog/Designed-to-be-fast-The-Outlook-on-the-web-user-experience-gets/ba-p/234909 ...
1
vote
0answers
19 views

Update the subject of email using custom Outlook Web App Addin

I have a scenario where my Outlook Web App Add-in looks for the same email by subject in a database through API. If this email found in the database, I want to mark that email with some categorization ...
0
votes
1answer
16 views

Adding Office UI Fabric react components to Office Add-in web project in visual studio

I am aware that we can use Yo-man and VS template to create office add-in. Yo-man provide more options on building package depending on the framework we select. I am wondering if we can add Office UI ...
0
votes
0answers
17 views

Excel for Mac - “Inspect” no longer works after upgrading to Safari 12

Someone in my company just upgraded to Safari 12, and now the "Inspect" menu-item to open the developer tools is no longer available (on Excel for Mac). All the instructions on the following page ...
0
votes
0answers
13 views

Is it possible to create sharing link for a document through office.js API?

I'm developing Office 365 Word Add-in and using office.js lib. Is it possible to create sharing link for current document from my Add-in code? If so, what method/lib should I use? I can't find it in ...
0
votes
1answer
26 views

How do I set a Word add-in to open automatically?

When you install an Word add-in an icon appears in the ribbon, and the user has to click on the icon in order to open the add-in Is there a way to make an Word add-in open automatically every time ...
0
votes
1answer
29 views

How does StorageEvent work in Office Add-in?

I have 2 task panes in Word Add-in (using Office UI Fabric with React). I select item in first pane and then I write item's id to localStorage. In the second pane I press update button, so I can see ...
0
votes
0answers
11 views

Office.initialize not called inside a dialog on iOS

I am developing a JavaScript-based Office addin that I plan to run in Office Online and on iOS. When using the Office dialog API on iPad, I found out that Office.initialize is not being called when it ...
0
votes
1answer
15 views

How to download a file using office.js excel add-in?

Is there any way to download a file using office.js excel add-in? Simple href is now downloading the file.
0
votes
1answer
20 views

Our manifest mentions ItemType Message but ItemSend event is invoked for appointments as well

We are developing a web-technologies Outlook Add-in that works with Office 365. We are using the ItemSend event. In our Outlook App manifest, we have: <Permissions>ReadWriteMailbox</...
1
vote
1answer
25 views

Outlook Add-In dialog box is too small in Windows desktop client

I am currently creating a contextual Add-In for Outlook which opens an additional dialog box when the link is clicked. On the Web client, the dialog box correctly opens to 80% size of the browser ...
2
votes
1answer
27 views

How should i pass a value from Office js function to angular syntax function

I have built an Office Web Addin in Angular 5 and now I am working with Office Rest Api, I followed the in documentation from use rest Api in Addins From the documentation it is cleared that we can ...
0
votes
0answers
22 views

excel tabledata to “userform” back to table

I have a table CategorieTable. I want to get the data then the user can adjust (userform) perform some inputvalidation in typescript and then write the data back to table in excel. Is there a office-...
0
votes
1answer
35 views

word add-in written in angular - find and select text

I am in charge of a word add-in and need to add new features, but I'm failing hard and hopefully anyone can help me :) I have a button and if this button is clicked the first occurence of a given ...
1
vote
3answers
41 views

MS Outlook add-in saveAsync method returns the wrong ID

I'm trying to write an Outlook add-in with office-js, which involves saving an email and then later sending it with the MS Graph API. To do this, I have the saveAsync method here, which should save ...
0
votes
0answers
17 views

Create and debug Office Web add-in with asp.net core project in Visual Studio

I want to build a Word web add-in with Visual Studio. If I create a new project using the default template, I have a project with the office manifest, and a web project using .net 4.7.2 I don't have ...
0
votes
1answer
38 views

Why is my saveAsync method always returning the same result? (Office.js - Outlook Add-in)

I'm currently writing some code as part of an Outlook add-in with the office-js library. Basically, after clicking a "send" button, my application should save the currently open message as a draft, ...
-2
votes
0answers
32 views

Is it possible to add office addin manifest file to excel programmatically? [closed]

Is it possible to add an office add-in manifest file to excel programmatically on a certain action?
0
votes
1answer
23 views

office addin dev 2016 and newer: how to add insert new page / slide button in the task pane app

I am looking for directions (API reference / samples) to create a insert new page buttons along with Slide number grid view for quick navigation to slides in Powerpoint 2013 and newer additions with ...
0
votes
1answer
12 views

Office 365 Powerpoint addon development how to add button controls (Ink and Draw) to task pane

I was trying to find API reference to add options for adding buttons in the task pane view which are there in the Draw toolbar ribbon. Can anyone please suggest how to do this and can the task panes ...
0
votes
1answer
24 views

In an office JS add-in how can I delete a sheet that I'm not sure its there?

I want to create a sheet with a name that I dont know if its already used. For that reason I need to try to find as sheet with that name and if it exists delte it.
0
votes
1answer
43 views

How to open a dialogue from an Ribbon button in Outlook web addin?

I am trying to open a dialogue from the ribbon button. I have added a ribbon button Engagement to the MessageComposeCommandSurface which will execute a function in function-file to open a dialogue ...
0
votes
0answers
19 views

Timezone conversions in outlook addin

I am developing an addin for outlook appointments, where Office.context.mailbox.item.start gives Start date time of current appointment in the client Machine local timezone. I can convert it to UTC ...
0
votes
0answers
51 views

Error 5100 “Wait until the previous call completes” with repeated calls to add bindings

I get this error working on an add-in to show specific types of errors in the text by searching for the particular text, formatting the range, and then adding named bindings and then a click binding ...
0
votes
0answers
35 views

How can I separate my code into different functions in a javascript excel add in when I make use of the context and of await context.sync()?

I have a Vue.js add in for Excel with a method that is as follows: getDataFromSourceDict (sourceDict, mainSheet, i) { window.Excel.run(async (context) => { //Some code... ...
0
votes
2answers
80 views

Opening a modal using dialog API in Outlook 365 shows a “new window” alert

I'm implementing the login system in my new Outlook 365 add-in, but I have a problem with an alert "{Addin name} wants to display a new window" shown when users try to open the modal login window. ...
0
votes
0answers
45 views

addFileAttachmentAsync download failed for file hosted in azure blob storage

I have created an Outlook web addin that attaches files to an email. When using the "addFileAttachmentAsync" method of the Outlook JS API to attach a file that is hosted in Azure Blob Storage I get a ...
0
votes
1answer
33 views

When using vue to create an Excel Add-in. How can I compute a property based on data on the excel notebook?

I want to get a list of the names of the sheets to create a drop drop down in my add in. I tried to do it via a a computed property but you cant run async functions to interact whit excel when ...
1
vote
1answer
32 views

Open only one dialog from ribbon

I have a ribbon with Login button, which opens the login dialog. I want to limit number of dialogs to one. I'm using function: displayDialogAsync(startAddress, options, callback) All I found is: ...
0
votes
1answer
22 views

Office JS Add-in API Compose appointment get contact

I'm searching in documentation how to get the list of contact of the Office account in the way to display it and let the user pick all phone numbers he need. I assume is not possible during outlook ...
0
votes
3answers
49 views

Outlook Add-in Message Compose Form

Is it possible to add a custom information field to the mail detail form based on some selection made in the task pane? Following image shows a mock up of my requirement.
0
votes
1answer
27 views

Title element doesn't work with Action Element in Manifest XML

I am creating an add-in for Microsoft Word. I am getting manifest validation error for Title element inside Action element. Microsoft Reference documentation for Action Element Error #1: XML Schema ...
-1
votes
0answers
13 views

documentation of office js fabric core components

i am trying to find office js fabric core components like input, combo box etc. I go to office js components site and it really takes me to examples of react components. Where can i find examples or ...
0
votes
1answer
47 views

Office js - Word Desktop vs Online Tables discrepancy

In Word Online I'm seeing tables can be inserted directly after one another in the document without creating a paragraph element between. The Office JS API in Word Online outputs these as two ...
0
votes
1answer
30 views

Manage Add-Ins page blank

When going to Manage Add-ins in OWA, we would get a blank page. We found very little information on it, but finally this article below which solved our issue. The basic premise is to move the ...
0
votes
0answers
32 views

Office Add-in - This app isn't supported by the version of exchange server that your account connects to

I have Exchange on-premises server with version 2013 I wrote an Office add-on which I can install in Office365 account with manifest file with out any issues But, when I try to install the same add-on ...
0
votes
1answer
70 views

Issue with getCallbackTokenAsync function on hosted exchange

I'm facing some issues with the Office.context.mailbox.getCallbackTokenAsync() function for Office.js. I am using this function to generate a token which I then use to get the attachments data of the ...
0
votes
1answer
33 views

Usage for displayNewMessageForm with unsaved attachments possible?

We are working on an Office AddIn for Outlook and we need to open a new message with predefined data we are getting from our own rest-interface in Json format like this: { "attachmentNo": "1", ...
0
votes
0answers
40 views

Office 2016 add-in https://localhost

I'm new to Office add-ins and I'm trying to create a sample Excel add-in that connects via https calls on our software to retrieve data. The Excel add-in is hosted on https server. The software has ...
1
vote
0answers
23 views

Detect hover in Microsoft Word Add-In

I'm trying to develop an Add-In for Microsoft Word. The basic idea being to load some key words into the document and then when the user hovers over one of the key words a box pops up to show more ...
0
votes
1answer
38 views

Outlook web add-in commands greyed out when opening an eml file

So I have developed a outlook web add-in, it can read emails content and send it to the server. But, if I use outlook desktop version to open an eml file, the add-in commands will be greyed out. Is ...
0
votes
0answers
36 views

Locating script errors in Outlook API code

We are developing a web-technologies Outlook Add-in that works with Office 365. The app opens up a dialog via Dialog API in ItemSend event - not sure if that is related at all to the issue we are ...
0
votes
0answers
34 views

How to hide content of binding using office.js?

The Word desktop app allows to hide/display the text by togggling 'Hidden' property in Font properties. The same can be achieved by setting <w:vanish /> property using binding.setDataAsync(data,...
0
votes
0answers
31 views

Distribute Word Addin privately for person with a personal Office 365 license

I'm building an add-in to replace some custom functionality I had added to standalone Microsoft Word some years ago. The add-in's done. The customer is pleased with how it works, but this is a ...
2
votes
1answer
42 views

Uncaught Reference Error: Excel is not defined

I am using the "JavaScript API for Office plugins" to create excel file in my HTML program. However this returns an error message when I load the page. <head> <script src="https://ajax....
0
votes
1answer
46 views

Cannot update Outlook 2016 msi installer to support Office.js requirement set 1.4

We're developing and Outlook web add-in that needs requirement set 1.4, which is supported by both Outlook 2016 CTR and MSI. We have Outlook 2016 MSI 64-bit installed on 2 different machines. Machine ...
0
votes
2answers
71 views

Error 13012 when calling Office.context.auth.getAccessTokenAsync

Last night my Word Addin project was working fine, this morning when I call Office.context.auth.getAccessTokenAsync() I get a response 13012 "An internal error has occurred." This error code is not ...
0
votes
0answers
11 views

How to Insert headers and footers using Office-js in Excel Worksheet

We want to insert text into headers and footers of an Excel Worksheet using the Office-js Api. Is there any way available now or in the near future to do this?