microsoft-graph-api

Microsoft Graph ChatMessage Namespace Missing in C#

帅比萌擦擦* 提交于 2020-07-09 06:09:10
问题 I'm following the Microsoft Graph tutorial to create and send a chat message to a Microsoft Teams channel from C#. However, I'm getting an error when following the first example when trying to create a ChatMessage object. ( var chatMessage = new ChatMessage... ) The error is: The type or namespace name 'ChatMessage' could not be found (are you missing a using directive or assembly reference?) I've added the following references to my project already but none of them seem to contain the

Microsoft Graph ChatMessage Namespace Missing in C#

青春壹個敷衍的年華 提交于 2020-07-09 06:05:09
问题 I'm following the Microsoft Graph tutorial to create and send a chat message to a Microsoft Teams channel from C#. However, I'm getting an error when following the first example when trying to create a ChatMessage object. ( var chatMessage = new ChatMessage... ) The error is: The type or namespace name 'ChatMessage' could not be found (are you missing a using directive or assembly reference?) I've added the following references to my project already but none of them seem to contain the

“onlinemeeting cannot be null” error when creating new meeting with beta API

♀尐吖头ヾ 提交于 2020-07-09 06:01:43
问题 I'm trying to create a new meeting as per the documentation: POST https://graph.microsoft.com/beta/app/onlineMeetings (bearer token included - works fine with other operations) { "meetingType": "meetNow", "participants": { "organizer": { "identity": { "user": { "id": "54f84a95-91c1-49f1-8d81-4632342e2c1e" } } } }, "startTime": "2018-10-10T14:46:02Z", "subject": "my meeting" } I get this error: { "error": { "code": "UnknownError", "message": "{\"message\":\"onlinemeeting cannot be null.\"}",

How to call Microsoft Graph API using VBA?

坚强是说给别人听的谎言 提交于 2020-07-09 03:44:10
问题 Question Is it possible to call Microsoft Graph API using VBA code? If yes, how to handle O365 authorization? I have seen plenty of topics saying to create an application in Microsoft Azure to get a token but I am surprised I must do that for a simple local use. What I tried After discovering Microsoft Graph, I tried this API in Graph Explorer https://graph.microsoft.com/v1.0/planner/tasks I was able to create a task in planner! Consequently, in my mind, it was possible to call this API from

Microsoft Graph API - unterminated string literal Error when searching for emails which contain # in the subject

和自甴很熟 提交于 2020-07-08 02:45:49
问题 When i am searching for emails on office 365 in a batch query, i am getting a unterminated string literal error. This is happening only when i have a # character in the subject search query. Forum discussions like this (https://issues.oasis-open.org/browse/ODATA-1101) have suggested me to percentage encode the # symbol but it gave the same error. When I am POSTing the below request to the batch endpoint(https://graph.microsoft.com/v1.0/$batch) { "requests": [{ "id": 1, "method": "GET", "url":

Microsoft Graph API - unterminated string literal Error when searching for emails which contain # in the subject

牧云@^-^@ 提交于 2020-07-08 02:44:14
问题 When i am searching for emails on office 365 in a batch query, i am getting a unterminated string literal error. This is happening only when i have a # character in the subject search query. Forum discussions like this (https://issues.oasis-open.org/browse/ODATA-1101) have suggested me to percentage encode the # symbol but it gave the same error. When I am POSTing the below request to the batch endpoint(https://graph.microsoft.com/v1.0/$batch) { "requests": [{ "id": 1, "method": "GET", "url":

Getting 400 Bad Request Error for MSGraph's create subscription api [Error Code - ExtensionError]

自作多情 提交于 2020-07-08 00:45:31
问题 Trying to create a subscription to get a channel for msgraph one drive notifications for file creation/upload. I am hitting the URL - https://graph.microsoft.com/v1.0/subscriptions with proper headers and the following body - { "changeType": "updated", "notificationUrl": "https://xxxxx.xxxxxxxxx.com/zzzz/qwertqwert", "resource": "/users/{user-id}/drive/root", "expirationDateTime": "2017-02-18T19:49:40.000Z", "clientState": "justsomerandomstring" } I am getting the following response : 400 Bad

Getting 400 Bad Request Error for MSGraph's create subscription api [Error Code - ExtensionError]

点点圈 提交于 2020-07-08 00:45:06
问题 Trying to create a subscription to get a channel for msgraph one drive notifications for file creation/upload. I am hitting the URL - https://graph.microsoft.com/v1.0/subscriptions with proper headers and the following body - { "changeType": "updated", "notificationUrl": "https://xxxxx.xxxxxxxxx.com/zzzz/qwertqwert", "resource": "/users/{user-id}/drive/root", "expirationDateTime": "2017-02-18T19:49:40.000Z", "clientState": "justsomerandomstring" } I am getting the following response : 400 Bad

HttpClient - PostAsync doesn’t return

三世轮回 提交于 2020-07-08 00:35:35
问题 Does anyone know why HttpClient - PostAsync doesn’t return. It just does nothing. I have had it working occasionally especially for one off posts but it seems sometimes to not do anything especially under load and it doesn't throw an exception which of course makes my code unreliable and hard to debug. I have tried adding ConfigureAwait(false) It makes not difference. I suspect the Task is failing to 'pack' This is in a core 3.0 console app run on macOS Catalina using visual studio code This

Which national cloud deployments support Delta queries?

这一生的挚爱 提交于 2020-07-07 22:56:29
问题 This Microsoft's documentation page: https://developer.microsoft.com/en-us/graph/docs/concepts/deployments indicates that support for Delta queries against Microsoft Graph API varies across different resources on each national cloud deployment. I would like to know exactly which deployments support Delta queries against Microsoft Graph API, but I couldn't find any documentation about this. 回答1: As you discovered, we don't currently document which clouds support delta query. If you're willing