In Office 365 Outlook-Add-in, Office.context.mailbox.item.body.getAsync()
Methode funktioniert nicht in Outlook Mac. Aber es funktioniert gut in Safari und Chrom. ReferenzOffice.context.mailbox.item.body.getAsync() -Methode funktioniert nicht in Outlook mac 2016
js Büro ist "https://appsforoffice.microsoft.com/lib/1/hosted/office.js"
hier ist der Code von Add-In lesen App
var _item = Office.context.mailbox.item;
var body = _item.body;
// Get the body asynchronous as text
body.getAsync(Office.CoercionType.Text, function (asyncResult) {
if (asyncResult.status !== Office.AsyncResultStatus.Succeeded) {
}
else {
$('#subject').html(asyncResult.value.trim());
}
});
makeEwsRequestAsync() -Methode auch hilfreich gleiche Anforderung zu erreichen .however es höchste Berechtigungsstufe benötigt. 'code ReadWriteMailbox Berechtigungen>' –
Ja leider müssen die Berechtigungen im Manifest aktualisiert werden ... –