Office.RecipientsChangedFields interface
オブジェクト RecipientsChangedEventArgs.changedRecipientFields
表します。
注釈
例
// Handles the OnMessageRecipientsChanged event.
function onMessageRecipientsChangedHandler(event) {
console.log(`Event: ${event.type}`);
const recipientFields = event.changedRecipientFields;
const changedFields = getChangedRecipientFields(recipientFields);
if (changedFields.includes("to")) {
// Perform operations based on the updated recipients in the To field.
}
}
// Gets the recipient fields that have changed.
function getChangedRecipientFields(recipientFields) {
return Object.keys(recipientFields).filter((key) => recipientFields[key] === true);
}
プロパティ
bcc | bcc フィールドの受信者が変更された場合に取得します。 |
cc | cc フィールドの受信者が変更された場合に取得します。 |
optional |
省略可能な出席者が変更された場合に取得します。 |
required |
必要な出席者が変更された場合に取得します。 |
resources | リソースが変更された場合に取得します。 |
to | [宛先] フィールドの受信者が変更された場合に取得します。 |