office365-apps

Restrict Office365 App “Read mail in All mailboxes” permission to specific mailbox

泪湿孤枕 提交于 2019-12-10 18:58:00
问题 I'm trying to download emails through Office365 app in MVC web app. And I'm struggling with configuring app permissions on Azure Active directory. Permission says: "Read mail in All mailboxes" however I want to choose which mailboxes it can access/read. Does anyone know ho to be more specific in setting up permissions in AAD? Thanks for any help. string authority = "https://login.microsoftonline.com/" + SettingsHelper.TenantId + "/oauth2/token"; var credential = new ClientCredential

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" } } ] } {

Load document from local filesystem to Office online

余生颓废 提交于 2019-12-08 20:14:49
I would like to load/save a file directly from the local filesystem in Word online (without uploading it to onedrive). Since this is not part of the default functionality I am trying to determine if this would be possible with an addin. The loading part: The Document object gives access to body load and save Methods however the documentation is unclear (to me) for load: Fills the proxy object created in JavaScript layer with property and object values specified in the parameter. It seems there are options available like insertFileFromBase64 and insertOoxml but unclear if those are only in

Two-way communication between VSTO add-in and a Task Pane app (JS/HTML)

五迷三道 提交于 2019-12-08 12:52:43
问题 Is it possible to have a VSTO add-in and a JS/HTML based Task Pane app talk to each other when running inside desktop Office application? The goal would be to bridge capabilities not yet present (or never will be present) in the x-platform Office APIs using VSTO. 回答1: As Evgene mentioned, there is no out-of-the-box functionality for this (though the topic has certainly come up in internal discussions, so I would be very curious to hear your scenario, and particularly how you would handle the

Office365 “addFileAttachmentAsync” error when doing multiple requests

你。 提交于 2019-12-08 11:39:29
问题 I am experiencing issue with addFileAttachmentAsync . I have 2 array : embeddedFiles (containes filenames that will be attached into body) and attachments (containes filenames that will be attachment). I have got 2 for loops running for each array and they should make GET request to Exchange Server with every single file in array and get back binary file. for (var i = 0; i < embeddedFiles.length; i++) { var attachmentName = (new Date()).getTime() + ".png"; var count = 0; var options = {

Office JavaScript API: highlighting text in a document

删除回忆录丶 提交于 2019-12-08 10:36:36
问题 I'm working on a side project using the Microsoft Office JavaScript APIs. I have been relying on the documentation to find my way around, but I've hit a wall trying to find something in the docs (perhaps it isn't there because it doesn't exist). Recently I attempting to implement some functionality to highlight some text within a Word document. I don't want to modify the document, mind you; in other words I would rather not use something like ContentControl.insertHtml as that would change the

Creating new site collection in Office 365 from an APP

自作多情 提交于 2019-12-08 08:03:50
问题 I have a requirement to create a new site collection from within an App in Office 365 programmatically. What I mean by a new site collection, is that after creation, it should appear on the list of site collections under the Admin --> Sharepoint tab of Office 365. I tried using a similar code below within a sharepoint hosted app that i had created, //create sp context and get root var clientContext = new SP.ClientContext.get_current(); var rootWeb = clientContext.site.rootWeb(); this

Load document from local filesystem to Office online

ぃ、小莉子 提交于 2019-12-08 03:34:49
问题 I would like to load/save a file directly from the local filesystem in Word online (without uploading it to onedrive). Since this is not part of the default functionality I am trying to determine if this would be possible with an addin. The loading part: The Document object gives access to body load and save Methods however the documentation is unclear (to me) for load: Fills the proxy object created in JavaScript layer with property and object values specified in the parameter. It seems

Office 365 Calendar API trigger call to app based on creating event

China☆狼群 提交于 2019-12-08 03:29:59
问题 Whenever an event gets created or edited in the Calendar, I would like the Office 365 Calendar API to notify my web application (written in Meteor JS and JavaScript). How can I achieve this? 回答1: Thanks for your question and interest in Office 365 REST APIs! We currently don't have support for notifications but this is ranked high on our roadmap and we are looking into it. Please let me know if you have any questions or need more info. Thanks, Venkat 来源: https://stackoverflow.com/questions

New Connector works for Outlook but not Microsoft Teams

╄→尐↘猪︶ㄣ 提交于 2019-12-07 15:58:55
问题 I'm trying to build an Office 365 Connector exclusively for use on Microsoft Teams based on this documentation. It seems to work for Outlook groups, but not for Teams. I've successfully created a Connector on the Connectors Developer Dashboard and configured it to work on Teams (image below), but when I click the "Connect to Office 365" button on my site, it gives me an error "No valid mailbox Found". When I change the settings of the Connector in the dashboard to support Outlook (and also