outlook-restapi

How to send nested attachments?

三世轮回 提交于 2019-12-21 02:36:13
问题 Stuck here writing JS code to send out an email via REST within a custom Outlook add-in. Scenario is following report \ \---- another message (item attachment) \ \------- attachment (file attachment) In words, I am sending a new report message which includes another message as an Item Attachment (that works fine). But now, the problem is that, when sending with another message that has attachments, then this fails. Opening the report which has the other message attached doesn't show the

Outlook Rest API: Download the email attachments of type .eml files using outlook rest API

青春壹個敷衍的年華 提交于 2019-12-20 04:46:53
问题 I followed this documentation to download the attachments of email. Below is the API response. If email attachment type is FileAttachment , I am able to get the file content in api response and able to save the attachment. If email attachment type is ItemAttachment , I am not able to get the file content in api response. When I googled for it, I found this stack overflow question. I used the rest API mentioned in the answer. But it's giving itemAttachment content in html format. And if that

How to get attachment(s) content > ~35MB by OWA REST API?

故事扮演 提交于 2019-12-20 04:15:38
问题 I'm developing OWA add-in using OWA REST API I got bad request 400 status code when trying to get the attachment bigger than 35MB by OWA REST API In Outlook, the user were able to upload attachment up to ~35MB, getting the content byte by OWA REST API was working perfectly. That's changed, so now the maximum size limit is ~140MB, but getting the attachment content for one attachment that is bigger than 35MB by either: https://outlook.office365.com/api/v2.0/me/messages/messageId/attachments

Modifying single occurrence from recurring series is not reflected in the data read from the Rest API

允我心安 提交于 2019-12-20 03:14:55
问题 When you create occurring event in Office365 Outlook and modify any single occurrence (edit occurrence) the change is never reflected in the data consumed from the REST API. Both recurrence exception is not created (new event) and series master has no single field changed. Expected behavior is the SeriesMaster to contain list of exceptions (for example by dates), and each exception to be created as new separate event with link to the recurrence head (e.g.: SeriesMasterId). { "@odata.id ":

Outlook Rest Api sending Mail Request returned status 400

你。 提交于 2019-12-19 10:46:21
问题 I try to send email from a signed Outlook Account with Outlook Rest Api and Curl then I get this error Request returned status 400 This is my code for sending mail private static $outlookApiUrl = "https://outlook.office.com/api/v2.0"; public static function sendMail ($access_token,$user_email,$subject,$Content,$email){ $arr= array( "Message" =>array( 'Subject' => $subject, "Body"=>array( "Content-Type"=>"HTML", "Content"=>$Content, ), "ToRecipients"=>array( array( "EmailAddress"=>array(

Graph authentication through Client Credentials flow - Will my app have access to just my user account or to the whole organization?

拈花ヽ惹草 提交于 2019-12-19 03:42:22
问题 I have a daemon script that needs to access my Office 365 inbox to read messages. Currently I am using basic authentication with V1.0 of the Outlook Rest API, which works well but since it is being discontinued I am looking to move to the Graph API and OAuth 2.0 authentication. The client credentails flow, as described here seems to be the best option for a daemon script, however, I'm confused on the scope of the permissions that the app will have. The article I linked above makes it look as

Office 365 REST API - Access meeting rooms calendars

廉价感情. 提交于 2019-12-18 04:14:21
问题 Using the Office 365 API, we'd like to allow users to view meeting rooms calendars and reserve them for events according to their permissions within Office 365. I understand it's possible with an Admin consent using a service app, but this is not possible for all our use cases. We need to work with the user's actual permissions and not bypass them with the admin's permissions in the background. I also understood based on this question and that question that it was not possible to do so using

Office 365 REST API list resources (meeting rooms)

六月ゝ 毕业季﹏ 提交于 2019-12-18 04:08:44
问题 I have a question about Office365 REST API. Is there a way to obtain list of resources - meeting room calendars. I can only get meetings that will take place in room if I know meeting room username. https://outlook.office365.com/api/v1.0/users/room1@xxxx.onmicrosoft.com/calendars Can I list all meeting rooms and obtain their calendars? 回答1: You can use the Azure AD Graph API to query the list of users. However, there is no field in the API that marks a user as being a conference room.

Access to Outlook RestAPI from an Outlook web Add-in

半世苍凉 提交于 2019-12-17 21:07:50
问题 I developed an Outlook Web Add-in that is working fine. It's a Taskpane that is available in compose mode of appointments and that collects event's data, adds a few ones and send that all to an API somewhere. What I would like to do now is to subscribe the authenticated user to the Outlook Rest API in order to get notified when the event is deleted. The subscription call should look like this one: POST https://outlook.office.com/api/v2.0/me/subscriptions HTTP/1.1 Content-Type: application

Get custom property set in Outlook Add-In via Microsoft Graph

陌路散爱 提交于 2019-12-17 17:07:52
问题 Let's say I have in my Outlook Add-In (using Office.js) following code running on a compose form of an appointment: const item = Office.context.mailbox.item; item.loadCustomPropertiesAsync((result) => { const props = result.value; const testProp = props.get("my_prop"); console.log("CUSTOM_PROP", testProp); props.set("my_prop", "test_value"); props.saveAsync((saveResult) => console.log("SAVE_CUSTOM_PROP", saveResult)); }); I see, that it actually is saved on the event. And now a bunch of