office365

Can Office 365 REST API send an email with both plain text and HTML body?

て烟熏妆下的殇ゞ 提交于 2019-12-11 07:59:47
问题 I'm looking at the API docs, and it looks like you can specify only one Body in a Message . Sending a message: https://msdn.microsoft.com/en-us/office/office365/api/mail-rest-operations#SendMessages The Message type: https://msdn.microsoft.com/en-us/office/office365/api/complex-types-for-mail-contacts-calendar#MessageResource Is it possible to do something like a multi-part message with plain text and HTML? Ultimately I'm looking to send this message with an attached calendar meeting

Disable Office 365 Outlook Add-in for desktop

喜夏-厌秋 提交于 2019-12-11 07:35:59
问题 I have developed an Office 365 Outlook Add-in for the web. It's automatically supported in desktop also. I want to disable the app only for the desktop. I guess we need to change something in Manifest file but I couldn't get any clue. Can anyone help me to achieve this?? 回答1: The Office add-in is aim to cross-platform developing for the Office solution. At present, it doesn't support to limit platform. Here is the specification of “Host“ element which used to specify the Office host

Microsoft Graph download file content returns 404

。_饼干妹妹 提交于 2019-12-11 06:58:13
问题 I tried to download a file with Grpah API. Tested with API browser, https://graph.microsoft.io/en-us/graph-explorer# Ran following request, got list of file/folder item information, https://graph.microsoft.com/v1.0/me/drive/root/children And for one of the file item, I was able to get item information. https://graph.microsoft.com/beta/me/drive/items/_an_item_id But following returns HTTP 404. https://graph.microsoft.com/beta/me/drive/items/_an_item_id/content What will be the cause for this

Get usedrange of Microsoft Graph API doesn't work

走远了吗. 提交于 2019-12-11 06:55:02
问题 I am trying to get values that are stored in Excel cells using the method Get usedrange (see the page below), but it doesn't work. https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/worksheet_usedrange The following error response is returned. { "error": { "code": "InvalidArgument", "message": "引数が正しくない、不足している、または形式が不適切です。", //The argument is incorrect, missing, or the format is inappropriate. "innerError": { "request-id": "dcff76b5-9bc6-4a01-b99f-853b9430ef0d", "date":

office 365 powershell login with service principal or OAuth2

懵懂的女人 提交于 2019-12-11 06:25:46
问题 I can find information about how to create Service Principals for Office365 with Powershell - but I can't find any how to login with them in Powershell. Is this not possible? I am currently using this code, that works with my Admin account but not with service credentials (that work with Azure) : $AdminName = "application-id" $Pass = ConvertTo-SecureString "application-key" -AsPlainText –Force $Cred = new-object -typename System.Management.Automation.PSCredential -argumentlist $AdminName,

Foreach loop to get department name in powershell office365

爷,独闯天下 提交于 2019-12-11 06:18:29
问题 I am trying to get the department from a list of UserPrincipalNames I am able to get this to work for a single user outside of the foreach loop. Its adding the loop where I am having trouble. Connect-MsolService $users = Import-Csv C:\Users\me\Desktop\users.csv foreach ($user in $users){ Get-MsolUser -UserPrincipalName $user | Select-Object firstname, lastname, UserPrincipalName, department |Export-Csv C:\Users\me\Desktop\test.csv } There are 50 email addresses listed in the CSV one email

Load Excel file in MS Word Add-in with Office.js

丶灬走出姿态 提交于 2019-12-11 06:17:36
问题 I am trying to create an add-in for MS Word where I can choose an excel file from some kind of file picker and then use that data to generate multiple pages (invoices) in the word doc. The problem is, I can't seem to figure out what syntax I need to load an external Office file in the Add-in. Thanks for any pointers. I am on a mac with Office 2016 so VBA is pretty much out of the question. 回答1: You could access the external Excel file using the Microsoft Graph web services. You can find

Are app-only tokens already available for Microsoft Graph API webhooks?

梦想与她 提交于 2019-12-11 06:16:48
问题 I'm trying to retrieve information via a webhook, regarding User's OneDrives on a Tenant, using an app-only token, and the Microsoft Graph API. The problem I'm having is that the Microsoft Graph Explorer keeps returning me an undefined error in an 500 response, that gives me little information, when creating a new subscription : { "error": { "code": "", "message": "An error has occurred.", "innerError": { "request-id": "16546770-c3b0-4d9f-8a9c-1a79fb17ffcd", "date": "2016-09-06T10:15:04" } }

Word Online Add-In: Using objects across multiple contexts

前提是你 提交于 2019-12-11 06:07:58
问题 I'm attempting to make an add-in, whereby a paragraph is split into sentences and then spoken, with the sentences being highlighted as they are read. For the most part, I have this working but the issue comes when I want to highlight the sentences currently being read. I have a function which splits the paragraph into sentences, based on where the users cursor is: function selectionTest() { Word.run(function (context) { originalRange = context.document.getSelection(); var paragraphs =

Payment options for Office add-ins in the Office store

蓝咒 提交于 2019-12-11 05:57:18
问题 We want to develop an add-in for several of the Office applications, we want the end-user to pay for these add-ins. We're not sure how to go about licensing and payment options. There should be some limited options for payment in the Office Store, but how we would check licenses in that case is unclear to me. Would it also be possible (or rather: allowed) to have our own (or a third party) licensing and payment system in the add-in? What would generally be the best option here? 回答1: Both