office365api

Can't get all busy times of meeting rooms using the Office365 Calendar API

一世执手 提交于 2019-12-02 11:00:34
Trying to fetch calendar events in order to allow a user to pick a time for a meeting where the attendees and the meeting room are available. We're using Outlook Calendar REST API v2 - findMeetingTimes: https://msdn.microsoft.com/en-us/office/office365/api/calendar-rest-operations#FindMeetingTimes The request returns almost all of the events. For some reason events that were created by the user that executes the request are not included in the response. It means that the meeting room or attendee seem as FREE even though they have an event in their calendar. Here's a sample request with only

Office365 Unified API, get calendar ID from Events ID

空扰寡人 提交于 2019-12-02 08:24:59
Every Event belongs to a Calendar, so when I receive a webhook from Outlook API management about a calendar event, I expect to also receive the container ID of this Events, but no. I get very little information about this calendar event, but still there is an ID. The problem how to get the ID of the calendar itself that holds this event? I use unified API for querying this, and all I get so far is GET https://graph.microsoft.com/beta/me/Events/< ID > But guess what, nowhere inside this response do I find the calendar ID. < sick > Can anyone tell me how to retrieve the calendar ID from an Event

How can I add a PublisherId to a GetBlob call to the Office365 Rest API to avoid throttling?

自闭症网瘾萝莉.ら 提交于 2019-12-02 07:25:44
I'm attempting to iteratively retrieve the content from the O365 management API (found here ). When I get to the 'Retrieving Content' section, I am making a get request using the URI returned from the 'Get Available Content' method. I am able to successfully iterate over the available content using the returned URI, but I am seeing the following message appear occasionally: {"error": {"message": "Too many requests. Method=GetBlob, PublisherId=00000000-0000-0000-0000-000000000000", "code": "AF429"}} This indicates a throttling error, as mentioned at the bottom of the documentation, but when I

Difference between notebook id by OfficeJS and OneNote API

走远了吗. 提交于 2019-12-02 06:40:42
问题 I'm trying to build task-pane add-in for OneNote ClassNotebook. I want to know whether current user is teacher or student. To achieve this, my plan was: 1. Get ID of activeNotebook from officeJS 2. Get class notebooks with ID from 1 from OneNote API 3. Use students and teachers from 2 to check if current user is student or teacher But the id from 2 is something weird form like this - {3b9c6337-cd8c-5c1c-a87b-1a9515237c48}{1} How can I fetch notebook with that ID? Code: let notebook = ctx

Microsoft Graph API Shared Calendar IDs inconsistent between users

纵饮孤独 提交于 2019-12-02 06:25:05
问题 My application allows users to schedule events on shared calendars and allows other users to potentially reschedule or cancel those events. I ask for the Calendar.ReadWrite.Shared permission to enable this. It appears that if two users have access to a shared calendar, the ID value returned from the GET /me/calendars is different for the two users. Is there a consistent, unique ID value that can be used to correlate shared calendars across users? 回答1: Unfortunately there is not a unique ID

Why do I get Gateway Timeout whenever my MS Graph API mail search finds no results?

给你一囗甜甜゛ 提交于 2019-12-01 18:22:20
As of this week I am suddenly getting gateway timeout from Graph when my mail search finds no results. I am using a query like this one: https://graph.microsoft.com/v1.0/users/shared@notreal.com/mailFolders/AllItems/messages?$search="participants:some.person@fake.com"&$select=from,subject,HasAttachments,Id,SentDateTime&$top=100 This is a Graph query which requests up to 100 emails from the Office 365 mailbox of shared@notreal.com where the sender or receiver includes some.person@fake.com . shared@notreal.com is a mailbox that is shared with the account making the call. My app is authenticated

Constructor of type HttpHandler not found using the Office 365 API

泄露秘密 提交于 2019-12-01 14:17:03
I recently started using the Office 365 API and can now successfully authenticate and get a token. Now I want to query the user's Exchange for meetings. To do this I run the example query from here : var client = new OutlookServicesClient(new Uri("https://outlook.office.com/api/2.0"), async () => { // Since we have it locally from the Session, just return it here. return token; }); var eventResults = await client.Me.Events.OrderByDescending(e => e.Start).Take(10).Select(e => new DisplayEvent(e.Subject, e.Start.ToString(), e.End.ToString())).ExecuteAsync(); // query: https://outlook.office.com

Constructor of type HttpHandler not found using the Office 365 API

て烟熏妆下的殇ゞ 提交于 2019-12-01 12:59:19
问题 I recently started using the Office 365 API and can now successfully authenticate and get a token. Now I want to query the user's Exchange for meetings. To do this I run the example query from here: var client = new OutlookServicesClient(new Uri("https://outlook.office.com/api/2.0"), async () => { // Since we have it locally from the Session, just return it here. return token; }); var eventResults = await client.Me.Events.OrderByDescending(e => e.Start).Take(10).Select(e => new DisplayEvent(e

Filtering multiple possible values with ExtendedProperties and Office 365 REST API

梦想与她 提交于 2019-12-01 12:53:13
问题 I am trying to get a list of emails given their InternetMessageID. For one given InternetMessageID, I can retrieve the corresponding mail following the syntax provided in Outlook documentation "https://outlook.office365.com/api/beta/me/messages?$filter=SingleValueExtendedProperties/any(ep: ep/PropertyId eq 'String 0x1035' and ep/Value eq '<12.FF.36768.EE3E3365@twitter.com>' )"; Now let us say that I want to retrieve two mails with the same request I did not manage to get a successful syntax.

How to retrieve contents of an itemAttachment via the Microsoft Graph API

本秂侑毒 提交于 2019-12-01 05:56:37
I'm currently developing a solution which is retrieving e-mails via the Microsoft Graph API. In november 2015 Microsoft stated it is ready for production and I've read in another forum post that if you start now on developing using a Microsoft API, you should use the Graph API, since it is the future. Everything is going well except for one thing and that is the following. I must retrieve e-mails. Inside these e-mails there are of course attachments. These attachments come in some variaties. fileAttachment (images, documents etc.), referenceAttachments and itemAttachments (outlook-item). The