Questions tagged [outlook-restapi]

The Outlook REST APIs include the Mail, Calendar, and Contacts APIs in Office 365.

Welcome to the outlook-restapi tag! Please use this tag to find answers, ask questions, and answer questions about using the Outlook REST APIs.

The Outlook REST APIs are comprised of three distinct APIs that provide access to users' data in Office 365:

  • Mail API: Used to manipulate mail and mail folders.
  • Calendar API: Used to manipulate events and calendars.
  • Contacts API: Used to manipulate contacts and contact folders.

Getting Started

Want to explore and play with the APIs? Check out the Office 365 OAuth Sandbox. You can quickly issue queries against your own data, or against a sandboxed environment.

The Outlook Dev Center has getting started guides in a number of different languages. Start from scratch and end with a working app that retrieves messages from the inbox.

Looking for code samples? Check out the Office Dev Center's Code Samples page. PHP, Node.js, Rails, and more!

Looking for more information, or just want to keep abreast of updates to the APIs? Follow the Outlook REST APIs team's blog.

966 questions
0
votes
2 answers

Searching with Office 365 Unified API

I am having trouble using the new Office 365 Unified API for searching for email. I would really appreciate it if I could get some help. I get the following error: {"error":{"code":"ErrorInvalidArgument","message":"The value specified for search…
rc1
  • 483
  • 4
  • 19
0
votes
1 answer

Building Daemon or Service Apps with Office 365 mail -- Compilation Error

I am following this entry at Exchange dev blog (MSDN). For the sample project published on GITHub, I'm getting following build errors, wondering which step I missed... Could not copy the file "AccessMailboxAsApp\Content\myappcert.pfx" because it…
Ree5un
  • 197
  • 1
  • 2
  • 14
0
votes
0 answers

Office365 REST API - fetch calendar event by event id

I'm trying to get event by it's id with office365 REST API, but I'm receiving 404 error. This is the url I'm using: https://outlook.office365.com/api/v1.0/users('{organizer email}')/Events('{eventId}') Calendar fetching, event creation and…
user2011328
  • 307
  • 3
  • 10
0
votes
1 answer

Creating calendar events with recurrence field fails

Creating calendar events with recurrence field fails. Here are sample request payload from Chrome Network tab: Successful (without Recurrence field): Attendees: [] Body: {ContentType: "HTML", Content: ""} End: "2015-05-14T16:29:40.307Z" Start:…
Vladimir Iliev
  • 1,871
  • 16
  • 26
0
votes
1 answer

Custom Parameter when adding a contact through OutlookServicesClient AddContactAsync?

I am trying to send a custom id from my web app to owa when adding contacts through OutlookServicesClient and office 365 rest apis. I need to be able to synchronize the data between the two. Is there a way to add an additional parameter in contacts?
Frank
  • 5
  • 2
0
votes
1 answer

Office 365 Rest Api Having issues getting access token

So far i have this. public static async Task CreateOutlookClientAsync(string capability) { try { string authority = CommonAuthority; // Create…
Frank
  • 5
  • 2
0
votes
3 answers

API Office 365 create an event in user calendar format error

I am using Office 365 to post an event in user calendar. I have a problem with the format of my post. Here is my code (using Codeigniter and Rest lib) : $config = array ( 'server' =>…
Vincent Decaux
  • 9,857
  • 6
  • 56
  • 84
0
votes
2 answers

Office365 Rest Structure - ChildFolders

I am trying to figure out a way of returning messages from a sub folder in outlook office 365 api. Everything seems to point to this; HttpResponseMessage response = await…
scottsanpedro
  • 1,142
  • 2
  • 12
  • 28
0
votes
1 answer

Programatically register an App on Azure AD

I am building a website (ASP.net MVC) that integrates with Office 365. The basic idea is that the website should be able to add items into the users' calendar, tasks, and store document into a sharepoint site. Where I am currently stuck is in order…
Tariq Ayad
  • 19
  • 5
0
votes
1 answer

Office365 returns same recordd ID for Two different Contacts?

Recently we have developed integration with Office365 to sync Contacts and Calendar events from Office365 and every thing seems to be working as expected. But today I faced one different issue where I followed this test case. I created couple of…
akshath
  • 61
  • 2
  • 9
0
votes
1 answer

Office365 get messages and filter who from

I'm trying to get messages from office365 and filter the From property. If I don't do the filter part, I get the messages as expected. I just don't know what to put in the filter string... This is what i've done: MSOutlookFolderFetcher…
Nimrod Shai
  • 1,149
  • 13
  • 26
-1
votes
1 answer

What is the difference between Office 365 APIs vs Outlook REST APIs vs Outlook EBS APIs vs Graph APIs vs OfficeJS APIs

I'm not entirely sure when to use each API reference that Microsoft provides. E.g., I had requirements to obtain the TASKS because I was developing an Office Outlook add-in. There are many approaches, but I'm not sure which one is the most…
-1
votes
1 answer

How to send email from Excel Script Lab?

I am trying to send email from Excel script lab. Based on my researching, it seems I need to use graph api. Is there any library support in Excel Script lab? I could not use msgraph-sdk-javascript since we could not use import or require in Excel…
Edward
  • 28,296
  • 11
  • 76
  • 121
-1
votes
1 answer

'Nonetype' object is not subscriptable - From outlook API extraction

I have some code that connects directly to outlook and extracts metadata from an inbox then complies into a pandas. However, I seem to be getting an error which I haven't encountered before and I suspect it has to do with bad data in the outlook…
Mike Mann
  • 528
  • 4
  • 18
-1
votes
1 answer

Outlook VSTO Addin C# - Catch click event on calendar

I (owner of the mailbox) have some shared calendars, I want catch a email of organizer by click on his calendar (I use this info later on my…
Eden M
  • 171
  • 1
  • 2
  • 15