0
// Global variables
var _Item;
var _MyEntities;
// The initialize function is required for all apps.
Office.initialize = function (reason) {
var _mailbox = Office.context.mailbox;
// Obtains the current item.
Item = _mailbox.item;
// Reads all instances of supported entities from the subject
// and body of the current item.
MyEntities = _Item.getEntities();
// Checks for the DOM to load using the jQuery ready function.
$(document).ready(function() {
// After the DOM is loaded, app-specific code can run.
});
}
// Gets instances of the Address entity on the item.
function myGetAddresses()
{
var htmlText = "";
// Gets an array of postal addresses. Each address is a string.
var addressesArray = _MyEntities.addresses;
for (var i = 0; i < addressesArray.length; i++)
{
htmlText += "Address : <span>" + addressesArray[i] + "</span><br/>";
}
document.getElementById("entities_box").innerHTML = htmlText;
}
전자 메일 주소에 액세스하려면 위 코드를 사용하고 있지만 entities_box div에서 결과를 볼 수 없습니다.Outlook365 항목에서 엔티티 문자열을 추출하십시오.
전자 메일 주소는 어떻게 참조 할 수 있습니까?