microsoft-graph-sdks

Microsoft graph api - Fetching events returns funky subject

荒凉一梦 提交于 2020-03-05 08:05:36
问题 I suspect that there might be a bug in the graph Api. I have a Powershellscript that fetches events for a series of meetingrooms. the URL i use: "https://graph.microsoft.com/v1.0/users/ roomuserid /Events? $Filter=start/datetime ge '2018-10-29'" the response looks like it should(in Json format), but however, on some events(but not all) the subject field seems to also include the name of the organizer. For example: if John Doe books a meeting in meetingroom 1, with the subject "Meeting1", the

Microsoft graph api - Fetching events returns funky subject

风格不统一 提交于 2020-03-05 08:05:34
问题 I suspect that there might be a bug in the graph Api. I have a Powershellscript that fetches events for a series of meetingrooms. the URL i use: "https://graph.microsoft.com/v1.0/users/ roomuserid /Events? $Filter=start/datetime ge '2018-10-29'" the response looks like it should(in Json format), but however, on some events(but not all) the subject field seems to also include the name of the organizer. For example: if John Doe books a meeting in meetingroom 1, with the subject "Meeting1", the

How to pass $value in request to get mime content of mail using graph sdk not api

别来无恙 提交于 2020-01-25 08:22:09
问题 I am using Graph SDK in C# to read mail messages and I am able to do that. I want Mime Content of my mail message. How do we pass $value in my request using SDK. Sample code: mails = await graphserviceclient .Me .Messages .Request() .Top(2) .GetAsync(); Please let me know how we can pass $value in C# code which uses graphserviceclient. 回答1: We are waiting for some metadata updates to make this easier in the SDK. For the moment, the workaround for getting the MIME content looks something like

How fetch “webParts” from site pages

那年仲夏 提交于 2020-01-06 06:38:21
问题 I am trying to fetch Pages from Sharepoint sites using graph API. But when we make GET request with https://graph.microsoft.com/beta/sites/{site-id}/pages/{page-id} the response consists of webParts which only have type and data. Inside data we have an id(which same as type) and an instanceId that is unique for every webPart. Sample webPart: { "type": "d1d91016-032f-456d-98a4-721247c305e8", "data": { "id": "d1d91016-032f-456d-98a4-721247c305e8", "instanceId": "c54a74ef-86c1-44aa-9ba4

Resource Not Found While fetching contacts from MS Graph API

半腔热情 提交于 2019-12-24 00:24:27
问题 I tried below github sample for Azure AD Authentication and successfully getting access token with proper call back URL. https://github.com/Microsoft/BotBuilder-Samples/tree/master/samples/csharp_dotnetcore/18.bot-authentication Modified and Configured Web.config Keys as per my application created in https://apps.dev.microsoft.com <add key="ActiveDirectory.Mode" value="v1" /> <add key="ActiveDirectory.ResourceId" value="https://graph.microsoft.com" /> <add key="ActiveDirectory.EndpointUrl"

Microsoft Graph Subscription ExtensionError - Delete / Update

两盒软妹~` 提交于 2019-12-18 09:14:08
问题 Issue I currently have an Azure Active Directory Application that has a Microsoft Graph Webhook Subscription listening for new emails (messages) in a specified mailbox. The subscription has a scheduled task that renews the subscription's expiration date via an Update request. The subscription is targeted using its MS Graph Provided ID. Any DELETE or UPDATE request against this specific subscription fails. (See 'Error Response' below.) Question I realize that this may be the same issue / bug

Cannot create a folder in a list [closed]

非 Y 不嫁゛ 提交于 2019-12-13 16:07:28
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 months ago . I am trying to create a folder in a list, the following does not work: var folder = new DriveItem { Name = plan.Title, Folder = new Folder() }; await graphServiceClient .Sites["ourdomain.sharepoint.com:/sites/ITOddeleni:"] .Lists["Planner"] .Drive .Root .Children .Request() .AddAsync(folder); I am using these

Can't Update a Document library

帅比萌擦擦* 提交于 2019-12-13 03:09:44
问题 Using the MS Graph SDK for .NET CORE, Creating a document library works fine. The new Library has the "Allow management of content types?" as yes But I can't change the content types and the Display name. On the code below, the library is created but I can do update to anything. the last line errors with : Code: -1, Microsoft.SharePoint.Client.InvalidClientQueryException Message: Invalid request. Inner error: AdditionalData: request-id: 8e38aeac-39fb-4e59-b3eb-2280a353753a date: 10/21/2019 9

How to get user's information from Active Directory by email address using Microsoft Graph sdk

孤者浪人 提交于 2019-12-11 16:30:16
问题 We would like to retrieve user's information from Azure Active directory using Microsoft Graph SDK. Given a valid email address, but I get an error Resource 'myemailaddress@live.com' does not exist or one of its queried reference-property objects are not present. Code is below. Can you please guide? IConfidentialClientApplication confidentialClientApplication = ConfidentialClientApplicationBuilder.Create(clientId).WithTenantId(tenantID).WithClientSecret(clientSecret).Build();

Microsoft Graph and access without a user

社会主义新天地 提交于 2019-12-11 08:24:32
问题 I'm trying to upload and download files in my sharepoint online using a background task (daemon) that runs frequently in my ASP.NET Core app. Because it's a background task, no user identity is used. Instead, I tried to follow this document, getting an access token using the https://graph.microsoft.com/.default scope, as well as having my enterprise app on azure having particular permissions already granted by the admin. I'm able to get an access token using my app's client id and secret.