Microsoft Graph API 发送不需要回复的会议邀请
Microsoft Graph API send no response required meeting invites
我正在尝试创建会议邀请,但不允许用户 Accept/Decline。我看到很多会议邀请都是“无需回复”。
{
"subject": "Microsoft Teams Meeting",
"location": {
"displayName": "Online Meeting"
},
"body": {
"contentType": "HTML",
"content": "Sounds good?"
},
"start": {
"dateTime": "2022-01-18T15:04:00",
"timeZone": "Pacific Standard Time"
},
"end": {
"dateTime": "2022-01-18T16:04:00",
"timeZone": "Pacific Standard Time"
},
"attendees": [{
"type": "required",
"emailAddress": {
"address": "umerwaqar@gmail.com"
}
}],
"isOnlineMeeting": false,
"onlineMeetingProvider": "teamsForBusiness"
}
我尝试输入“responseRequested”:false“但仍然看到 Accept/Decline/暂定选项。
但我希望它删除这些选项并显示“无需响应”,如下图所示
将另一个电子邮件地址设置为与我们用于创建活动的电子邮件地址不同的与会者,然后它将显示“不请求响应”
{
"subject": "Let's go for lunch",
"responseRequested":false,
"body": {
"contentType": "HTML",
"content": "Does noon work for you?"
},
"start": {
"dateTime": "2022-01-21T12:00:00",
"timeZone": "Pacific Standard Time"
},
"end": {
"dateTime": "2022-01-21T14:00:00",
"timeZone": "Pacific Standard Time"
},
"location":{
"displayName":"Harry's Bar"
},
"attendees": [
{
"emailAddress": {
"address":"xxx@outlook.com",
"name": "tiny wang"
},
"type": "required"
}
]
}
"responseRequested": false
应该适用于 create event api, because the event object 具有 responseRequested
的 属性。
但请注意online meeting object doesn't contain this property, so you can't create an online meeting without response by adding this property using this api。
我正在尝试创建会议邀请,但不允许用户 Accept/Decline。我看到很多会议邀请都是“无需回复”。
{
"subject": "Microsoft Teams Meeting",
"location": {
"displayName": "Online Meeting"
},
"body": {
"contentType": "HTML",
"content": "Sounds good?"
},
"start": {
"dateTime": "2022-01-18T15:04:00",
"timeZone": "Pacific Standard Time"
},
"end": {
"dateTime": "2022-01-18T16:04:00",
"timeZone": "Pacific Standard Time"
},
"attendees": [{
"type": "required",
"emailAddress": {
"address": "umerwaqar@gmail.com"
}
}],
"isOnlineMeeting": false,
"onlineMeetingProvider": "teamsForBusiness"
}
我尝试输入“responseRequested”:false“但仍然看到 Accept/Decline/暂定选项。
但我希望它删除这些选项并显示“无需响应”,如下图所示
将另一个电子邮件地址设置为与我们用于创建活动的电子邮件地址不同的与会者,然后它将显示“不请求响应”
{
"subject": "Let's go for lunch",
"responseRequested":false,
"body": {
"contentType": "HTML",
"content": "Does noon work for you?"
},
"start": {
"dateTime": "2022-01-21T12:00:00",
"timeZone": "Pacific Standard Time"
},
"end": {
"dateTime": "2022-01-21T14:00:00",
"timeZone": "Pacific Standard Time"
},
"location":{
"displayName":"Harry's Bar"
},
"attendees": [
{
"emailAddress": {
"address":"xxx@outlook.com",
"name": "tiny wang"
},
"type": "required"
}
]
}
"responseRequested": false
应该适用于 create event api, because the event object 具有 responseRequested
的 属性。
但请注意online meeting object doesn't contain this property, so you can't create an online meeting without response by adding this property using this api。