Share via


Office.TaskSuggestion interface

アイテム内の識別される推奨タスクを表します。 閲覧モードのみ。

電子メール メッセージで提案されたタスクの一覧は、アクティブなアイテムで taskSuggestions または getEntitiesByType メソッドが呼び出されたときにgetEntities返される Entityes オブジェクトのプロパティで返されます。

注釈

最小アクセス許可レベル: アイテムの読み取り

適用される Outlook モード: 読み取り

const item = Office.context.mailbox.item;
// Get an array of strings that represent task suggestions in the current item's body.
const taskSuggestions = item.getEntitiesByType(Office.MailboxEnums.EntityType.TaskSuggestion);
console.log("There are " + taskSuggestions.length + " task suggestions.")
taskSuggestions.forEach(function (taskSuggestion) {
    console.log("Assignees: " + JSON.stringify(taskSuggestion.assignees));
    console.log("Task: " + JSON.stringify(taskSuggestion.taskString));
});

プロパティ

assignees

推奨タスクに割り当てる必要のあるユーザーを取得します。

taskString

タスクの提案として識別されたアイテムのテキストを取得します。

プロパティの詳細

assignees

推奨タスクに割り当てる必要のあるユーザーを取得します。

assignees: EmailUser[];

プロパティ値

taskString

タスクの提案として識別されたアイテムのテキストを取得します。

taskString: string;

プロパティ値

string