开发者

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:

 $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'.

Is there a way to 'force' Outlook to read the information from the location and recognize it as the resource?

Many thanks!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜