[英]MS Graph and PHP : Add location that is recognized in Outlook
we are using the following code in order to add a room (Resource) to the location in Outlook calendar event:我们使用以下代码将房间(资源)添加到 Outlook 日历事件中的位置:
$response = [
'Subject' => $subject,
'Body' => [
'ContentType' => 'HTML',
'Content' => 'This is event generated by Clebex!'
],
'Start' => [
'DateTime' => $declaration->datetime_from,
'TimeZone' => 'UTC'
],
'End' => [
'DateTime' => $declaration->datetime_to,
'TimeZone' => 'UTC'
],
'Attendees' => $attendees,
'Location' => [
[
'displayName' => 'Room 1',
'emailAddress' => 'room1@example.com',
'locationIdentifier' => [
'id' => $organizer,
'type' => 'room'
],
]
],
'isOnlineMeeting' => true,
'onlineMeetingProvider' => $meetingProvider
];
Outlook calendar event is created successfully, but location resource is not recognize as such by Outlook. Instead of that in the location field there is only a string 'Room 1'. Outlook 日历事件已成功创建,但 Outlook 无法识别位置资源。位置字段中只有一个字符串“Room 1”,而不是该位置资源。
Is there a way to 'force' Outlook to read the information from the location and recognize it as the resource?有没有办法“强制”Outlook 从该位置读取信息并将其识别为资源?
Many thanks!非常感谢!
So, after doing more research: solution is to add the room as attendee, with type 'resource' instead of 'required'.因此,在做了更多研究之后:解决方案是将房间添加为与会者,类型为“资源”而不是“必需”。
After this, room is placed in Location field and is recognized as the resource in Outlook.在此之后,room 被放置在 Location 字段中,并被识别为 Outlook 中的资源。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.