microsoft-graph

Can't create a all-day repeated via Graph API

為{幸葍}努か 提交于 2020-01-06 07:17:12
问题 According to the document, I try to use Graph API to create a all-day repeated event on my calendar, but the server always responses 400: TimeZoneNotSupportedException. Is there any wrong in my request? Here is my request and server response. POST /me/calendars/${one_of_my_calendar_id}/events Request body: { "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('6cb879ad-1d01-4aed-bcc5-763e3f51c535')/events/$entity", "@odata.etag": "W/\"BfXylo4WykyAenTZICXL5AABk4B1gA==\"", "id":

Get SharePoint user ID and profile of an SP site with MS graph api

て烟熏妆下的殇ゞ 提交于 2020-01-06 06:50:24
问题 Is there a way to get user ID inside a SharePoint site with Microsoft Graph API ? I get a guid id with /me endpoint but in my SP site the current user has id 033. I know there is a way with SP rest api with currentspcontext. But i want to query with ms graph 回答1: I believe the Microsoft Graph currently only lets you query SharePoint sites, lists, and list items. Have you tried using the Microsoft Graph to query the User Information list? Here is a sample of the service call that you need. You

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

Microsoft Graph API BETA - retrieving calendar for event returns unexpected calendar [duplicate]

痞子三分冷 提交于 2020-01-06 01:55:07
问题 This question already has answers here : Office365 Unified API, get calendar ID from Events ID (3 answers) Closed last year . I ran into an issue when working with the Microsoft Graph API BETA version (https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/beta-overview) I retrieve event details by calling the API endpoint (https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/event_get#http-request) https://graph.microsoft.com/beta/me/beta/me/events/{id} which

“One or more scopes are not compatible with each other” error when retrieving access token for the

旧巷老猫 提交于 2020-01-06 01:31:49
问题 I have an app that integrated with Outlook, Calendar via the Azure AD REST API v.2. I have tried to use the incremental and dynamic scopes to "upgrade" the user's token so that the app can access OneDrive as well, (so the user could directly upload her email attachments in her cloud). The authorization code retrieval redirects went well and the user is asked for the additional scope after login (files.readwrite). However, on step 2 when I try to obtain the access token I get the following

Is there a field to get online meeting url if it is Microsoft Teams meeting?

偶尔善良 提交于 2020-01-06 01:25:28
问题 When I use this API to get events GET https://graph.microsoft.com/v1.0/me/calendarview?startdatetime=2018-04-11T00:00:00.000Z&enddatetime=2018-04-18T00:00:00.000Z If it is a Skype meeting, there will be a onlineMeetingUrl field and have the meeting url. However, if it is a Microsoft Teams meeting, onlineMeetingUrl is null. Is there another special field for the meeting url? Thanks Below is a Microsoft Teams meeting: { "@odata.etag": "W/\"oCWUK/b/Ok2lJzxdSR2E9QABXMy2tg==\"", "id":

Add custom headers and retrieive custom header using Microsoft Graph API

回眸只為那壹抹淺笑 提交于 2020-01-05 09:05:20
问题 I am currently using Microsoft Graph API to retrieve my email, send new email and answer to an email. I use Code Grant authorization to identify my user and access its information. PROBLEM This application let the user send email to our customers that have unpaid invoice. But the application uses GET https://graph.microsoft.com/v1.0/me/messages (with $search set to the customer email) to retrieve every mail that involves the customer, so the user can trace every conversation made by other

Microsoft Graph Api: Filter by GUID value

非 Y 不嫁゛ 提交于 2020-01-05 08:16:32
问题 I am trying to use Microsoft Graph Api to get the details of a specific user. I have a problem that can be demonstrated using the Graph Explorer: https://developer.microsoft.com/en-us/graph/graph-explorer If I run this query: https://graph.microsoft.com/v1.0/users I get a list of users, including their ID. I know I can get the details of just one user by appending the id to the url. For example, this query: https://graph.microsoft.com/v1.0/users/f71f1f74-bf1f-4e6b-b266-c777ea76e2c7 Results in

Microsoft Graph API Errors

雨燕双飞 提交于 2020-01-05 05:42:11
问题 I've been using Microsoft Graph Api's v1.0 List messages method for nearly five months. In the last few days it started returning errors when ever i add the $search parameter in my query string. It gives either a 503 or 504 error code The error is received after give or take 20 sec. along with following message: { "error": { "code": "UnknownError", "message": "", "innerError": { "request-id": "8fd1d9ed-cde6-4237-b1a7-ab089a28d37e", "date": "2019-07-02T10:09:48" } } } Microsoft Graph errors

Unable to subscribe to Microsoft Graph API Calendar is user has apostrophe in name

吃可爱长大的小学妹 提交于 2020-01-05 04:51:17
问题 We have an application set up in Office 365. The customer has given Admin Consent to Calendar.ReadWrite access for all users’ calendars in the tenant. Our web application is able to set up subscriptions for change notifications except for users with an apostrophe in their email address (i.e. John.O’Neil@nonwhere.com ) Subscription requests results in the following error: { "error": { "code": "ExtensionError", "message": "Operation: Create; Exception: [Status Code: ServiceUnavailable; Reason: