office add-ins development
363 TopicsAdd-ins in the new Outlook for Windows
The new Outlook for Windows brings a more consistent and robust experience with rapid access to new features. It also has some significant changes in how add-ins are handled. The article below outlines our approach and what admins need to know about add-ins in the new Outlook for Windows.157KViews1like18CommentsOutlook Calendar: display event times in user's timezone in edit view
I would like to see the event times in my timezone in Outlook Calendar all the time regardless of the timezone used when event was created. For example: Event is created with UTC timezone but my timezone is UTC+2 (this can happen when using different integrations or calendar syncs which create events for me in my calendar) Current behavior: Open Outlook Calendar - event times in UTC+2 Click on the event and a little popup is shown - event times in UTC+2 Click edit and the short form for editing is displayed - event times in UTC+2 Click on more options and the full form is displayed - event times in UTC14KViews115likes30CommentsNative Linux Office365 Apps
This is something that has been raised in the past on other platforms: https://answers.microsoft.com/en-us/msoffice/forum/all/office-365-on-linux/262e3066-a71e-4af7-9600-af9f8d0746b6 Opening it again here as it would be really nice to have linux native versions of Word, Excel, Outlook etc. More and more MS software is getting ported to Linux at the moment: Teams, VSCode, MSSQL etc. We're standarised on MSOffice here in work, but linux is much smoother for website development. I'm currently running software through wsl, but that is slow. Would be lovely to use Fedora or Ubuntu and be able to use Office365 on there on the odd occaisions I use them.13KViews27likes8CommentsOffice JS Save and Close methods for Word, Excel and PowerPoint
Hello! These are two features which we are extremely interested in. I've been asking in many Community Calls but I haven't had any ETAs yet, so hopefully posting here helps. Please could we have a consistent method for Word, Excel and PowerPoint to save a file? Word and Excel have ‘context.document.save()’ and ‘context.workbook.save() but they lack similar options for behaviors (eg. skip the save dialogue). PowerPoint does not have context.presentation.save() yet. Please could we have an equivalent method for all three (Word, Excel, PowerPoint) with similar options/behaviors? This is really needed for developers. Please an ETA would be appreciated. Similar to the previous question, could we have an equivalent method for all three (Word, Excel, PowerPoint) to close files with similar options/behaviors? This is also really needed for developers. Please an ETA would be appreciated. Thank you so much in advance!7.3KViews79likes11CommentsContext menus in Outlook Web Add-ins
As it seems, currently Outlook Web Add-ins do not support context menus (e.g. the menu which appears when the user right clicks on an appointment). However, native Add-ins seem to support this (There is a "Send to Onenote" button which appears on Outlook). This functionality is very useful, especially since Web Add-ins also do not support tasks panes to stay always open. This causes that the user needs to reopen the task pane again and again every time he opens an appointment. Our use case would be: right click "Take Notes" which opens a Task Pane where the user can take meeting notes. Looking forward to get the OfficeDev's feedback on this! Thank you Lukas6KViews11likes10CommentsStandard way to unit test and mock office-js API
Currently, there is no documentation or any model to follow about unit testing and mocking with Office-js. Using standards approaches like Sinon or Jest proves challenging because office-js API needs to be loaded by an HTML file, making the API not available beforehand. This issue also increases because some test APIs may require the entire object to be mocked, which can have more than 100 properties, making it not feasible. There is also the issue of making the tests preserve the order of functions load or sync, which are very common to occur in the development and are difficult to test because stateless test APIs do not support easily adding state variables to handle those functions. Having an easy and common approach, with an explanation of how to use it, would solve these problems, thus making unit testing/mocking office-js a quicker and easier experience. Related issues: Overall Testing Story for Office Add-ins · Issue #584 · OfficeDev/office-js-docs-pr (github.com) Would you please provide information about Unit Test ? · Issue #1611 · OfficeDev/office-js-docs-pr (github.com) We would like to get feedback and suggestions on your experience with unit testing/mocking office.js, as we plan on delivering a solution to help alleviate your problems. Here are some questions that we would like to understand with your feedback: Do you face difficulties when dealing with mocking office-js API? What would you like to help easier the unit testing experiences? What are some pain points you are facing?4.4KViews9likes6CommentsAllow .msg file export through JS add-in API in Outlook-Desktop
I'd like to create an add-in which create a .msg file of an email and sends it to a remote server for archival purposes. Outlook already can create .msg files through the "Save as..." dialog but this functionality is not exposed to the Office API. I could access all relevant information through the API and create an .eml file for example (or use EWS/graph-API for that), but I'd prefer to leverage the existing outlook functionality. I suggest a method "getMsgFileAsync( options: Office.AsyncContextOptions, callback?: (asyncResult: Office.AsyncResult<ArrayBuffer>) => void): void" on the "Office.context.mailbox.item" object. As far as permissions go, "ItemRead" should suffice.3.3KViews16likes17CommentsAllow PDF/A as target for getFileAsync
The https://docs.microsoft.com/en-us/javascript/api/office/office.document?view=word-js-1.3#getFileAsync_fileType__callback_-API already supports PDF export. Unfortunately, the file format is PDF 1.8 whereas we need a PDF/A compatible export. It is possible to specify PDF/A when saving the PDF manually through the "Options" dialog in the Office application. Unfortunately, there is no (documented) way to specify the type of PDF in the getFileAsync-API. It would be great, if the API is expanded so that PDF/A compatibility can be requested as well (either with a new file format flag or as an option in the optional GetFileOptions-object).3.2KViews39likes4CommentsHow to conect to microsoft exchange using API with java application?
I want to conect to microsoft exchange using API with java application run security algorithms before it reaches user's inbox. How can I do that the API " GET https://graph.microsoft.com/v1.0/me/messages " results the mails from user and after the mail reached user's inbox ?3.2KViews0likes9Comments