对于组织中的用户,当我打开链接 JoinWebUrl 并从 windows.open(JoinWebUrl)
生成 client.api('/me/onlineMeetings')
时,我能够在参与者列表中看到用户,但是如果我添加一些不是用户的参与者我的组织作为与会者 我无法将这些用户视为与会者。谁能帮忙解决这个问题。
const client = await getAuthenticatedClient(accessToken);
const onlineMeeting = {
startDateTime: '2021-05-31T17:33:30.8546353-07:00',
endDateTime: "2021-05-31T18:33:30.8546353-07:00",
subject: 'HelpaaS Expert Call',
// externalId: '07aa75f6-6fc8-4fdc-bed1-9dab78f899c0',
participants: {
attendees: [
{"@odata.type": "#microsoft.graph.meetingParticipantInfo"},
{
identity: {
user: {
id: '07aa75f6-6fc8-4fdc-bed1-9dab78f899c0',//id.AAD_UserGuid,
displayName : 'Sanjeev Gupta'//id.DisplayName
}
},
role: 'attendee',
upn: 'sanjeev.gupta@softobiz.com'//id.Mail
}
]
// "organizer": {
// "identity": {
// "user": {
// id: '07aa75f6-6fc8-4fdc-bed1-9dab78f899c0',//id.AAD_UserGuid,
// displayName : id.DisplayName
// }
// }
// }
}
// "isBroadcast": true
};
let response = client.api('/me/onlineMeetings')
.post(onlineMeeting);
response.then(async data=>{
console.log(data,"Call the user now");
// window.open(data.joinWebUrl)
}
非常感谢任何帮助。 提前致谢。
答案 0 :(得分:0)
从评论中复制答案以更好地理解: 您可以使用 microsoftTeams.executeDeepLink(/deepLink/) 打开深层链接,也可以在卡片操作中使用加入 url,当用户单击按钮时,他将被重定向到会议。您可以使用 Graph API 发送卡片,请查看 Send message containing cards