How to identify shared mailbox or folder in multi select

Manuel 25 Reputation points
2024-11-14T09:58:52.2666667+00:00

The recommended way of identifying whether a mailbox or folder is shared is to check the shared properties on an item:

Office.context.mailbox.item.getSharedPropertiesAsync((result) => {

if (result.status === Office.AsyncResultStatus.Failed) {

console.error("The current folder or mailbox isn't shared.");

return;

}

const sharedProperties = result.value;

console.log(`Owner: ${sharedProperties.owner}`);

console.log(`Permissions: ${sharedProperties.delegatePermissions} `);

});

Since the item property is undefined in multi-select; how can it be checked when multiple mails are selected?

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,004 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.