会議イベントが出席者の Microsoft 365 メールボックスから別の受信者に転送される場合、このアクションは、転送の開催者に通知するメッセージも送信し、受信者を開催者の会議イベントのコピーに追加します。 この利便性は、Outlook.com アカウントから転送する場合には使用できません。
アクセス許可
この API を呼び出すには、次のいずれかのアクセス許可が必要です。 アクセス許可の選択方法などの詳細については、「アクセス許可」を参照してください。
アクセス許可の種類
アクセス許可 (特権の小さいものから大きいものへ)
委任 (職場または学校のアカウント)
Calendars.Read
委任 (個人用 Microsoft アカウント)
Calendars.Read
アプリケーション
Calendars.Read
HTTP 要求
POST /me/events/{id}/forward
POST /users/{id | userPrincipalName}/events/{id}/forward
POST /groups/{id}/events/{id}/forward
POST /me/calendar/events/{id}/forward
POST /users/{id | userPrincipalName}/calendar/events/{id}/forward
POST /groups/{id}/calendar/events/{id}/forward
POST /me/calendars/{id}/events/{id}/forward
POST /users/{id | userPrincipalName}/calendars/{id}/events/{id}/forward
POST /me/calendarGroups/{id}/calendars/{id}/events/{id}/forward
POST /users/{id | userPrincipalName}/calendarGroups/{id}/calendars/{id}/events/{id}/forward
POST https://graph.microsoft.com/v1.0/me/events/{id}/forward
Content-type: application/json
{
"ToRecipients":[
{
"EmailAddress": {
"Address":"danas@contoso.onmicrosoft.com",
"Name":"Dana Swope"
}
}
],
"Comment": "Dana, hope you can make this meeting."
}
// Code snippets are only available for the latest version. Current version is 5.x
var graphClient = new GraphServiceClient(requestAdapter);
var requestBody = new Microsoft.Graph.Me.Events.Item.Forward.ForwardPostRequestBody
{
ToRecipients = new List<Recipient>
{
new Recipient
{
EmailAddress = new EmailAddress
{
Address = "danas@contoso.onmicrosoft.com",
Name = "Dana Swope",
},
},
},
Comment = "Dana, hope you can make this meeting.",
};
await graphClient.Me.Events["{event-id}"].Forward.PostAsync(requestBody);
// THE CLI IS IN PREVIEW. NON-PRODUCTION USE ONLY
mgc users events forward post --user-id {user-id} --event-id {event-id} --body '{\
"ToRecipients":[\
{\
"EmailAddress": {\
"Address":"danas@contoso.onmicrosoft.com",\
"Name":"Dana Swope"\
}\
}\
],\
"Comment": "Dana, hope you can make this meeting." \
}\
\
'
<?php
// THIS SNIPPET IS A PREVIEW VERSION OF THE SDK. NON-PRODUCTION USE ONLY
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestBody = new ForwardPostRequestBody();
$toRecipientsRecipient1 = new Recipient();
$toRecipientsRecipient1EmailAddress = new EmailAddress();
$toRecipientsRecipient1EmailAddress->setAddress('danas@contoso.onmicrosoft.com');
$toRecipientsRecipient1EmailAddress->setName('Dana Swope');
$toRecipientsRecipient1->setEmailAddress($toRecipientsRecipient1EmailAddress);
$toRecipientsArray []= $toRecipientsRecipient1;
$requestBody->setToRecipients($toRecipientsArray);
$requestBody->setComment('Dana, hope you can make this meeting.');
$graphServiceClient->me()->events()->byEventId('event-id')->forward()->post($requestBody)->wait();
Import-Module Microsoft.Graph.Users.Actions
$params = @{
ToRecipients = @(
@{
EmailAddress = @{
Address = "danas@contoso.onmicrosoft.com"
Name = "Dana Swope"
}
}
)
Comment = "Dana, hope you can make this meeting."
}
# A UPN can also be used as -UserId.
Invoke-MgForwardUserEvent -UserId $userId -EventId $eventId -BodyParameter $params
# THE PYTHON SDK IS IN PREVIEW. FOR NON-PRODUCTION USE ONLY
graph_client = GraphServiceClient(request_adapter)
request_body = ForwardPostRequestBody(
to_recipients = [
Recipient(
email_address = EmailAddress(
address = "danas@contoso.onmicrosoft.com",
name = "Dana Swope",
),
),
]
comment = "Dana, hope you can make this meeting.",
)
await graph_client.me.events.by_event_id('event-id').forward.post(body = request_body)