I have used getAsync method to retrieve the body content which is a asynchronous call.
// Get the body asynchronous as text
body.getAsync(Office.CoercionType.Text, function (asyncResult) {
if (asyncResult.status !== Office.AsyncResultStatus.Succeeded) {
// We got an error while making the asyn call
}
else {
// Call succeeded do something here
}
});
But I want to read the mail content synchronously . How can this be achieved?