Add-in
56 TopicsOffice.js preview features release
Office.js for PowerPoint has had a couple of preview features (getImageAsBase64, getSlideAsBase64) in preview now for nearly a year. I've done my best to search for any updates from the office.js on release timeline for these features with no luck. These two API calls are super convenient and enable features in the add-ins for PowerPoint which is near impossible to create using alternative solutions. Anyone out there with any knowledge on when we can expect these beta/preview features to be production ready?99Views2likes3CommentsContent Control getter not giving all characters | Word Add-in
Hi, I am working on Word add-in where I am able to set placeholder text for content control without any character limit but when I am trying to get the placeholder text using office JS methods, then it is returning only the first 255 characters string. If the same is set on content control object then the collection must return the whole text of the placeholder. Please provide a support for this issue as soon as possible. Code snippet :- Word.run((context) => { const range = context.document.getSelection(); // Insert a content control at the selection range const contentControl = range.insertContentControl(); // Set the placeholder text for the content control contentControl.placeholderText = "indiaaaaaaaaaaaaaaadsf asd fsdf[a]sd [fa]sd [fa]sd[ fa]sd f{}{}asd fsda:;asdfa sdf asd fasd asd fdfasd f@3323 q4q234q34dfasdf asd fasdf asd fasd fasd fasdf asd as fasd asdf asd asd fasdf asdf asd asd fasd fasd fasd asd sdafindiaaaaaaaaaaaaaaadsf asd fsdf[test test" // Load the changes made to the document return context.sync() .then(() => { console.log("Content control inserted with placeholder text:", contentControl.placeholderText); // returning only first 255 characters }); }) .catch((error) => { console.error("Error: " + JSON.stringify(error)); });317Views2likes0CommentsOutlook Add-in Can not get access token
Hi. I am trying to develop an outlook add-in and in my adding I want to forward and/or delete an email. for this I am using Microsoft exchange API like this await axios.delete(`${OFFICE_URL}/me/messages/${mailId}`, { headers: { 'Authorization': 'Bearer ' + accessToken, 'Content-Type': 'application/json', 'Accept': 'application/json', } }); but to be able to this I need to get an access token. From the Microsoft documentation (https://learn.microsoft.com/en-us/javascript/api/outlook/office.mailbox?view=outlook-js-1.5&preserve-view=true#outlook-office-mailbox-getcallbacktokenasync-member(1) I am trying to get my access token like this. async function getAccessToken() { return await new Promise((resolve, reject) => { Office.context.mailbox.getCallbackTokenAsync( { isRest: true }, function (result) { if (result.status === Office.AsyncResultStatus.Succeeded) { resolve(result.value); } else { reject(new Error(result)) } }) }); } This code is not working approximately for a week but before it was working and I was not getting an error. But this is not the case anymore. From developer tools, this is the request and payload I am sending. Even though server responds with 200 (OK) it is not giving me my token. This is the response. { "Header": { "ServerVersionInfo": { "MajorVersion": 15, "MinorVersion": 20, "MajorBuildNumber": 7292, "MinorBuildNumber": 29, "Version": "V2018_01_08" } }, "Body": { "ResponseMessages": { "Items": [ { "__type": "GetClientAccessTokenResponseMessage:#Exchange", "Token": null, "MessageText": "An internal server error occurred. The operation failed., One or more errors occurred.", "ResponseCode": "ErrorInternalServerError", "ResponseClass": "Error" } ] } } } What I do not understand is that this was working fine just a week before and not just one time but it was working fine for more than a month.741Views1like0CommentsAdd-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.157KViews1like18CommentsWhat is this? Is this an Office Addin?
Hi, I'm a developer and I got this promotional e-mail from Microsoft: I dislike the ad itself, but I'm interested the way this works: when I click in a button, instead of opening a browser, it reacts in the e-mail body itself. Like a mini browser with SPA in the body. What is this kind of e-mail? Is it an outlook add-in? How can I create this kind of e-mail for Outlook?Solved1.2KViews1like4CommentsXMLTools doesn't work with Excel 2007 anymore
Hello, I used XMLTools for Excel 2003 with Excel 2007 (it says its compatible). Everything worked fine, but now I get a Errormassage saying: Runtime error '424', object requierd. How can I make it work again? https://support.office.com/en-us/article/Create-an-XML-data-file-and-XML-schema-file-from-worksheet-data-e35400d4-0e10-4669-9a50-59a8c57d677e1.4KViews1like1CommentExcel add-ins issue in Office update
Hi all My job requires running a suite of user-defined specialised add-in functions within Excel. The add-in library is compiled in an XLL, and was put together by a group of quants 20 years ago at a firm that no longer exists. As of yesterday, the new version of Excel (Office v 2006 build 13001.20384) is incompatible with this add-in library. Office sends an error warning when you try and install (/options/add-ins); and if you install anyway, none of the functions actually appear in the 'insert function' command. Any ideas?1KViews1like0Comments