microsoft-graph-sdks

Create event with Microsoft Teams online meeting using Microsoft Graph Java SDK

吃可爱长大的小学妹 提交于 2020-06-28 08:08:55
问题 Searching in the Microsoft Graph documentation, I found this: https://docs.microsoft.com/es-es/graph/api/user-post-events?view=graph-rest-1.0&tabs=java It says that you can create an event with an online meeting using Java "Event" type. Code example But the problem is, when I tried to do it with the current last Microsoft Graph SDK version 1.7.1, I noticed that "event.isOnlineMeeting" and "event.onlineMeetingProvider" don't exists. Is it not implemented yet? Or I'm missing a new Microsoft

Getting the drive's items from Microsoft Graph API: The request is malformed or incorrect

妖精的绣舞 提交于 2020-06-28 04:24:48
问题 I am trying to get a drive's items via the Microsoft Graph Api (SDK) and tried the following options: _graphServiceClient.Drives[driveInfo.Id].Items.Request().GetAsync() :, this unfortunately results in an error with message error with message "The request is malformed or incorrect" and code "invalidRequest" . If I execute _graphServiceClient.Drives[driveInfo.Id].Request().GetAsync() however, I get back all drives but the Items property is null . _graphServiceClient.Drives[driveInfo.Id]

Cannot add to another users calendar

*爱你&永不变心* 提交于 2020-06-17 04:41:46
问题 I am attempting to allow a user add items to the calendars of other users. A user logs in and get the token as follows const AUTHORIZE_ENDPOINT = '/oauth2/v2.0/authorize'; const TOKEN_ENDPOINT = '/oauth2/v2.0/token'; const SCOPES = 'profile openid email User.Read Calendars.ReadWrite Calendars.Read Calendars.Read.Shared Calendars.ReadWrite Calendars.ReadWrite.Shared'; $graph = new Graph(); $graph->setAccessToken($token); $response = $graph->createRequest("GET", "/me")->setReturnType(Model\User

Getting Events from Calendar using C# and Microsoft Graph SDK

自古美人都是妖i 提交于 2020-06-16 17:24:49
问题 I'm trying to develop a console app to list, remove and add events to a specific user's calendar. I'm developing a business process. I'm starting by listing events. Calendar cal = client .Users["UserName@CompanyName.com"] .Calendars["AAMkAGIzZDM4O...."] .Request() .GetAsync() .Result; I get the correct calendar back but the Events collection is null. There are 13 events in the calendar. I have Calendar Read/Write permissions. Any ideas? 回答1: I don't have an environment to test the c# Graph

Getting Events from Calendar using C# and Microsoft Graph SDK

送分小仙女□ 提交于 2020-06-16 17:24:45
问题 I'm trying to develop a console app to list, remove and add events to a specific user's calendar. I'm developing a business process. I'm starting by listing events. Calendar cal = client .Users["UserName@CompanyName.com"] .Calendars["AAMkAGIzZDM4O...."] .Request() .GetAsync() .Result; I get the correct calendar back but the Events collection is null. There are 13 events in the calendar. I have Calendar Read/Write permissions. Any ideas? 回答1: I don't have an environment to test the c# Graph

Add bot (ms-botbuilder) to the MS Teams Team/Channel programmatically

让人想犯罪 __ 提交于 2020-06-08 06:40:10
问题 I'm looking to find a way to add a bot to a team that this bot just created. Was able to create a group via MS Graph by the bot JS-SDK graphClient.api("/groups").post({ displayName: "Some Name", mailNickname: "Name without Spaces", description: "Some Description", visibility: "Private", groupTypes: ["Unified"], mailEnabled: true, securityEnabled: false, "members@odata.bind": members, // array of url strings of members "owners@odata.bind": owners, }); members and owners arrays of strings

Combined Select and Filter MS-Graph query parameters not working as expected for signInActivity/lastSignInDateTime

回眸只為那壹抹淺笑 提交于 2020-05-24 07:11:12
问题 Query: https://graph.microsoft.com/beta/users?$select=id,displayName,signInActivity&$filter=signInActivity/lastSignInDateTime le 2020-03-01T00:00:00Z I am trying to query for users based on "lastSignInDateTime". When I do this , the response gives all the properties for every user returned. I then try to reduce this response by adding a "select" parameter to reduce the properties returned but it seems to have no effect. Is it possible to combine the "Filter" and "Select" query Parameter's?

Microsoft Graph API serviceNotAvailable error when getting site by ID

試著忘記壹切 提交于 2020-04-11 12:35:11
问题 I am getting an HTTP 503 status MSFT Graph API error when attempting to get a Sharepoint site that was successfully created by a Post with the Graph API. I am using a Developer O365 subscription. A Python application using the MSFT MSAL library for managing the authentication token is being used. I am able to successfully call other parts of the Graph API with the python app. When using the Graph Explorer logged into my account and with Site permissions I get a correct successful response.

Microsoft Graph API serviceNotAvailable error when getting site by ID

↘锁芯ラ 提交于 2020-04-11 12:35:06
问题 I am getting an HTTP 503 status MSFT Graph API error when attempting to get a Sharepoint site that was successfully created by a Post with the Graph API. I am using a Developer O365 subscription. A Python application using the MSFT MSAL library for managing the authentication token is being used. I am able to successfully call other parts of the Graph API with the python app. When using the Graph Explorer logged into my account and with Site permissions I get a correct successful response.

Microsoft Graph API serviceNotAvailable error when getting site by ID

依然范特西╮ 提交于 2020-04-11 12:32:03
问题 I am getting an HTTP 503 status MSFT Graph API error when attempting to get a Sharepoint site that was successfully created by a Post with the Graph API. I am using a Developer O365 subscription. A Python application using the MSFT MSAL library for managing the authentication token is being used. I am able to successfully call other parts of the Graph API with the python app. When using the Graph Explorer logged into my account and with Site permissions I get a correct successful response.