microsoft-graph

Adding a Tab to a Team Channel through Flow

隐身守侯 提交于 2019-12-25 02:44:27
问题 I'm trying to use Flow to add a SharePoint List Tab to a Channel in a Team. But while I can add a Tab, the Tab is always blank. I've tried both Microsoft Graph Explorer and Flow but I can't seem to configure the tab to show my SharePoint List. Or any other app for that measure. The tab is always blank. I've followed the POST from the API POST https://graph.microsoft.com/v1.0/teams/{id}/channels/{id}/tabs Body: NOTE: 2a527703-1f6f-4559-a332-d8a7d288cd88 is the TeamsAppsId for Sharepoint and

Pulling Excel.xlsx workbook from Sharepoint site using Microsoft Graph API

断了今生、忘了曾经 提交于 2019-12-25 01:43:49
问题 As stated in the title, I've been trying to use the Microsoft Graph API to pull an Excel workbook from our company's Sharepoint site. I am able to retrieve the metadata for the file, but when I add the /workbook/ segment to the URL, I receive the below error: { "error": { "code": "BadRequest", "message": "Resource not found for the segment 'workbook'.", "innerError": { "request-id": "bf41e41a-bc01-4c3b-b1d7-3125c4d48124", "date": "2019-04-10T16:29:07" } } } Here is what the successful call

Drive Search not working in Office 365 group

半城伤御伤魂 提交于 2019-12-25 00:51:57
问题 DriveItem Search does not seem to be possible in an Office 365 group context, despite the documentation mentioning it should be supported: GET /groups/{group-id}/drive/root/search(q='{search-text}') Steps to reproduce (e.g. in the Graph Explorer): create newFileTest.docx in the root of your GROUP folder Search for the file: https://graph.microsoft.com/v1.0/groups/{GROUP_ID}/drive/root/search(q='newFileTest.docx') - returns 0 items create newFileTest.docx in the root of your PERSONAL folder;

Microsoft Graph API call hangs indefinitely

独自空忆成欢 提交于 2019-12-25 00:40:23
问题 I am attempting to query user information via Microsoft Graph. I can authenticate fine but when I attempt to query user information graphServiceClient.Users my application hangs indefinitely: no timeout, no error, just hangs. I found this post however the suggestions there did not help me. Here is my code: public bool GetUserByUniqueID(string uid, out GraphUser user) { bool ret = false; user = new GraphUser(); if (Authenticate(out AuthToken token)) { GraphServiceClient graphServiceClient =

Unable to get access token from Azure AD when using Microsoft Graph Explorer

烈酒焚心 提交于 2019-12-24 22:29:40
问题 I have registered an application on Azure AD and created 2 users and a group in the azure ad directory using the azure portal. Now through Microsoft Graph explorer , I am testing the API for the operation "Get All user groups is the organization" , but I am getting empty array as response though there exists a group on the AD in my directory. For the operation "Get the groups I belong to" , I get error. I have followed the documentation, and as I understand we need to first request an access

Microsoft Graph Client SDK vs. Requesting JSONs

风流意气都作罢 提交于 2019-12-24 20:21:32
问题 I know that the query: https://graph.microsoft.com/v1.0/me/messages Corresponds to: GraphClient.Me.Messages.Request().GetAsync() I am trying to replicate the following requests in Microsoft Graph Client SDK : Get All Categories https://graph.microsoft.com/beta/me/outlook/masterCategories Corresponding Graph client query: ?? Get All messages that contain certain words in their subject The link will be similar to this https://graph.microsoft.com/v1.0/me/messages?$search="hello world"

Handling photo response from Microsoft Graph

可紊 提交于 2019-12-24 18:48:33
问题 I can't figure out what actually is returned by this call and how I can display it in HTML as an img tag. When I use the same URI using the online Microsoft Graph Explorer test environment I get the image as intended. var requestUri = "https://graph.microsoft.com/v1.0/barfoo.onmicrosoft.com/users/xxxxx-xxxxxx-xxxxx/photo/$value"; var request = new HttpRequestMessage(HttpMethod.Get, requestUri); var accessToken = await _authenticationHelper.GetAccessTokenAsync(); request.Headers.Authorization

Postman could not complete Oauth2 login for Microsoft Graph OAuth2

左心房为你撑大大i 提交于 2019-12-24 18:37:41
问题 I am trying to use Postman for a Microsoft Graph Rest API OAuth2 I have tried everything mentioned on Stackoverflow and other resources but I cant seem to figure out what I am doing wrong. 回答1: Change Client Authentication to Send client credentials in body . Also, you should remove the https://graph.microsoft.com/ bit from your first scope. 来源: https://stackoverflow.com/questions/49803861/postman-could-not-complete-oauth2-login-for-microsoft-graph-oauth2

Converting excel to pdf returns wrong file using MS Graph

泪湿孤枕 提交于 2019-12-24 18:31:31
问题 I'm using MS Graph API to convert excel to pdf. But the pdf file I get from MS Graph API is different from the file I get from printing of Excel. For example: My excel has only 2 pages, when I use excel to print PDF, I get exactly 2 pages, but when I use MS Graph API to convert excel to pdf, my pdf file has 4 pages. This is my js code to convert excel to pdf, just only send http request as document: export const convertPDF = async (token: string, fileID: string): Promise<ArrayBuffer> => {

How to create Planner Task with checklist item through Graph API

為{幸葍}努か 提交于 2019-12-24 18:29:52
问题 I'm trying to create a Planner Task including a couple of checklist items. The checklist items are part of the task details, but unlike the description field, the checklist items are a list of item with a unique element name like the element samples 14680 and 49286 below. How can I create such a list for a task through the API? "checklist": { "14680": { "@odata.type": "#microsoft.graph.plannerChecklistItem", "isChecked": true, "title": "Element 2", "orderHint": "8586819525[x", "lastModifiedBy