office365

Calling Microsoft Graph in a service or daemon app using client assertions instead of using client secret?

拈花ヽ惹草 提交于 2019-12-24 08:47:01
问题 The url https://developer.microsoft.com/en-us/graph/docs/authorization/app_only describes how a service or daemon app can use the client secret configured in the Microsoft Application Registration Portal and obtain access tokens. The Application Registration Portal has a 'Generate New Key Pair' button to generate public/private key pair. Is there any documentation that describes how to use public/private key pairs and use it to get the access token instead of client secret? Also i am always

Office365 Excel access to the Tools -> References menu for RegExp library

人走茶凉 提交于 2019-12-24 08:23:59
问题 This might sound like a simple question but I'm creating a macro in VBA that uses regular expressions. It turns out VBA doesn't inherently support regex and I need to add a reference to 'Microsoft VBScript Regular Expressions 5.5' to gain access to regex functions in Excel. All my searching online tells me you need to go to Tools -> References menu to add/remove references that can be used in VBA. The Tools -> References menu in Excel as obtained from Google For the life of me I can't see

Office 2016/365 VBA fails to update PPT links from old script

爱⌒轻易说出口 提交于 2019-12-24 08:22:46
问题 I have a need to change lists of links in large PPT presentations. I had working code that did it fine. Recently I upgraded to Office 2016 and now the script is not working correctly. I simple put my old and new path strings in a 2 dimensional array and loop through them correcting the links in the PPT. This has some debug code in it, and come commented lines where I was trying things to fix it, please ignore. For j = 0 To UBound(MyArray) oldString = MyArray(j, 0) newString = MyArray(j, 1) If

Accessing window.open popup from excel online task pane

和自甴很熟 提交于 2019-12-24 08:05:05
问题 I am currently debugging some code that was done by past developers. We are using the below code to open a new window to authenticate the user (oAuth2 Flow). var oAuth2Window = window.open(_embeddedStartUrl, "Authentication", "location=0,status=0,scrollbars=1,resizable=1,height=600,width=450"); After the user logs in successfully, it's trying to access some properties on oAuth2Window but I am getting: “Access is denied”. The host names are on different servers. This is currently happening in

Office 365 Calendar API Using EWS and OAuth 2

非 Y 不嫁゛ 提交于 2019-12-24 07:44:08
问题 Please see edits at the bottom. I'm trying to work with the Office 365 API using EWS (not the managed API) to create/delete/update events on users' calendars. So far, I have successfully used Basic Auth to validate that my SOAP request will work. I'm now trying to replace Basic Auth with OAuth 2. I require the use of the Client Credentials Flow. Here are the steps I followed: Provided admin consent to the application. I launched the following URL in my browser, and provided consent using an

Unable to send an invitation of the folder using Microsoft.Graph Api

牧云@^-^@ 提交于 2019-12-24 07:36:13
问题 I am trying to send an invitation for the folder but I keep getting this error: An invalid operation was attempted while processing this request. My code is: var graphclient = AuthenticationHelper.GetGraphServiceClient(); List<DriveRecipient> recpient = new List<DriveRecipient>() { new DriveRecipient { Email = "abcd@hotmail.com", Alias="abcd" } }; // var info = await graphclient.Me.Request().GetAsync(); var invite = graphclient.Me.Drive.Root.ItemWithPath("trying").Invite(recpient, false, new

How to see excel API results, custom functions in excel sheet(cell) through Script Lab, instead of console log?

被刻印的时光 ゝ 提交于 2019-12-24 07:35:50
问题 I am using Script lab in office 365 and facing difficulty in writing a function which fetches data from API(url). I need help in merging the below code with custom function in Java Script. from the below code that I am able to get API results in script lab console but I want final results in excel screen(cell). Currently I can see all the ticker.name instead of specific. var request = new XMLHttpRequest(); request.open("GET", "https://api.coinmarketcap.com/v1/ticker/", true); request.onload =

Errors receiving emails with imaplib, from a specific inbox

微笑、不失礼 提交于 2019-12-24 06:44:49
问题 When reading emails from a specific folder (Office365), the body of the message is a random long string that makes no sense. Initially, I sent those emails to my personal mail as copy, to a specific folder. Reading from there I haven't had problems. But when I try to read directly from the main inbox, the messages are long strings that makes no sense (so, I can´t parse anything) mail = imaplib.IMAP4_SSL(SMTP_SERVER) mail.login(FROM_EMAIL, FROM_PWD) boxes = mail.list() mail.select('INBOX

On-click event in Add-in created with “yo office” gets invoked for all open documents

一世执手 提交于 2019-12-24 06:40:53
问题 I created react-based word JS plugin with YO OFFICE. What I noticed is that when I open two different word documents (word, online word, mix'n'match) with my plugin loaded then interactions with one instance propagate to another instance. So, context actions supposed to be applied for one word document get applied to all open documents. This is not expected. Any ideas what I'm doing wrong? 回答1: "Yo office" uses BrowserSync for debugging, which has the nice effect of automatically refreshing

Lengthy HTTP calls failing in TaskPane apps on Office for Mac Client

守給你的承諾、 提交于 2019-12-24 06:34:28
问题 We have built an Excel Task Pane add-in that interacts with our server to get data from an external source. For few calls the server takes more than a minute to respond. For such calls, Excel add-in (which runs in Mac Desktop Excel 2016) doesn't receive any response (either success or failure or timeout) even though the server has sent it. Note: This happens only when the add-in runs in Mac Desktop Excel. In other systems and browsers it works fine. Does the Office for Mac client have a low