scriptlab for outlook - error with function getattachmentsasync

56 Views Asked by At

I am a newbie to 'script lab' for outlook. I need to access attachments (open & save, but this question is not that far). I use function "getattachmentsasync", code below, but it raised an error:

["Uncaught TypeError: Office.context.mailbox.item.getAttachmentsAsync is not a function", "https://script-lab-runner.azureedge.net/", 14, 33, TypeError]

code:

$("#run").click(run);
function run() {
  Office.context.mailbox.item.getAttachmentsAsync(function (att) {
    console.log(att)
  } );
}
0

There are 0 best solutions below