office365api

Getting JavaScript-errors when authenticating using ADAL

不问归期 提交于 2019-12-10 12:20:03
问题 I am using the Microsoft Graph API and am successfully querying a user's meetings and emails. A user (testing the application) reported a JavaScript-error during the authentication process with Office 365 (using ADAL), see Screenshot below. A few months ago I noticed these pop-ups too, but they were gone after I've updated the ADAL Nuget -Package. I just checked and there is no update available (current version: 4.0.209160138-alpha). I myself cannot reproduce the issue . It might be that

Microsoft Graph API mail office 365: Is any option create inbox message NOT as Draft?

社会主义新天地 提交于 2019-12-09 23:39:16
问题 I'm using office 365 mail Microsoft Graph API , trying to create new message following the Doc: https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/user_post_messages POST https://graph.microsoft.com/beta/me/messages Content-type: application/json { "subject":"Did you see last night's game?", "importance":"Low", "body":{ "contentType":"HTML", "content":"They were <b>awesome</b>!" }, "toRecipients":[ { "emailAddress":{ "address":"AdeleV@contoso.onmicrosoft.com" } } ] } {

Getting Bad Request error while updating email category with Office 365 API and HttpClient in C#

混江龙づ霸主 提交于 2019-12-08 19:05:33
I'm trying to to update email category and also mark it as read after that with the help of Outlook 365 API and HttpClient . Following this tutorial . In the tutorial the code is as below to update category and mark as read but, I'm not getting that how should I attach these details to HttpClient and request. PATCH https://outlook.office.com/api/v2.0/me/messages/AAMkAGE0Mz8S-AAA= Content-Type: application/json { "Categories": [ "Orange category", "Green category" ], "IsRead": true } The method and HttpClient I'm using are as below: Update 1 public string UpdateCategory(AuthenticationResult

Create an Office365 mailbox from within C# Web API method

北战南征 提交于 2019-12-08 15:09:35
Context I have an ASP.NET Web API application invoked by an ASP.NET MVC application. Inside the Web API, I have a method that will need to create an Office365 mailbox amongst other stuff (create folders, create a contact, create a signature etc.…) The creation of that mailbox actually hides few steps that need to occur in a particular order: Create a User in the local Active Directory (return true or false). Force AD Connect to synchronize between the local AD and the Azure AD because there is a default 30 min delay which we can’t wait for, hence why we need to force the synchronization

How to hit Office 365 API from Ruby?

十年热恋 提交于 2019-12-08 11:31:26
问题 I am attempting to access the Office 365 API from a Ruby on Rails backend and am having problems. Whether I use the ruby_outlook gem (github) or follow Microsoft's official Ruby on Rails sample, I am getting 401 unauthorized . My access_token is being saved using Omniauth and is valid, I checked by pasting it in here. Am I using the correct access_token? It is over 1400 characters long (1442 to be exact). Can anyone show me an example of how to properly call the Office 365 Mail API from Ruby?

Write efficient queries with the OutlookServicesClient

末鹿安然 提交于 2019-12-08 07:29:25
问题 I am using the Office 365 Mail API and my goal is to get the total number of email messages a user sent (1.) and received (2.) today . Todo this, I first created and tried and run some queries in the Office 365 API Playground: https://outlook.office.com/api/v2.0/me/mailfolders/sentitems/messages?$filter=sentdatetime%20ge%202015-12-10T08:00:00.000Z&$select=Subject,CreatedDateTime,ToRecipients https://outlook.office.com/api/v2.0/me/messages?$count=true&$filter=receiveddatetime%20ge%202015-12

Use multiple scopes with the Office 365 API

耗尽温柔 提交于 2019-12-08 06:11:28
问题 I want to use the two scopes https://outlook.office.com/Mail.Read and https://outlook.office.com/calendars.read to read an authenticated users' email and calendar. I followed the official .Net (WPF) tutorial to authenticate the user and obtain a token. It works well as long as my scope is only one of the ones above. As soon as I use both, I don't get back a token when I try to obtain it. That's basically what I do: private static string[] scopes = { "https://outlook.office.com/Mail.Read",

Create an Office365 mailbox from within C# Web API method

扶醉桌前 提交于 2019-12-08 05:37:56
问题 Context I have an ASP.NET Web API application invoked by an ASP.NET MVC application. Inside the Web API, I have a method that will need to create an Office365 mailbox amongst other stuff (create folders, create a contact, create a signature etc.…) The creation of that mailbox actually hides few steps that need to occur in a particular order: Create a User in the local Active Directory (return true or false). Force AD Connect to synchronize between the local AD and the Azure AD because there

Office365 REST API - Creating a calendar event with attachments

天涯浪子 提交于 2019-12-07 16:57:49
问题 I am unable to create a calendar event with attachments using Office365's Rest API. Creating events without attachments is not a problem. Trying to create events with attachments creates the event, but the files I send are not added. The server responds with a 201 response code. I am sending a POST request to: https://graph.microsoft.com/v1.0/me/calendars/$(calendarID)/events I use the following Authorization header: Authorization: Bearer $(tokenString) Request payload: { "start": { "dateTime

Possible to update an Exchange o365 Online meeting Location to another room with graphapi or graph explorer

最后都变了- 提交于 2019-12-06 19:39:35
I am able to update the meeting event but does not update location to an actual room on Azure Active directory, only updates to text. So say someroom is an meeting room.. we only get "someroom" text location. Is this possible? how Trying this. Also read maybe I need location.AdditonalData , but see no examples anywhere. PATCH : Event_URL Body PAYLOAD : { "subject": "Test Graph 2", "location": { "displayName": "someroom", "locationEmailAddress": "someroom@mydomain.onmicrosoft.com", "address": { "@odata.type": "microsoft.graph.physicalAddress" } } } also tried this: endpoint: https://graph