Conflict in available times for Microsoft Graph meetings
I'm working on software in Laravel where requests are made to check available times in two different emails and it is possible to schedule meetings according to this availability, all of this is done via Microsoft Graph
However, there is a problem occurring, I tried to schedule a meeting in the email room ******@teste.com from 10 am to 11 am on 10/06/2023, and after scheduling this meeting at the same time in the other room (teste1@teste .com) became unavailable.
I searched for this in the gpt chat and it returned me this:
"The problem you are experiencing occurs because, when scheduling a meeting in the ******@teste.com room, you are blocking time in that room.
This means that the timetable will no longer be available in the ******@teste.com room.
Microsoft Graph takes time constraints into account when you search
available times for meetings, which is expected behavior."
I was confused about this, is there no way to separate the meeting times of two emails?
My request code for available times is this:
$emailTeste = '******@kvminformatica.com.br';
$eventsTeste = [];
"attendees": [
{
"emailAddress": {
"address": "'.$emailTeste.'",
"name": "'.$emailTeste.'"
},
"type": "Required"
}
],
"timeConstraint": {
"activityDomain": "unrestricted",
"timeslots": [
{
"start": {
"dateTime": "'.$dia.'T08:00:00",
"timeZone": "'.$viewData['userTimeZone'].'", },
"end": {
"dateTime": "'.$dia.'T18:00:00",
"timeZone": "'.$viewData['userTimeZone'].'", }
}
]
},
"locationConstraint": {
"isRequired": "false",
"suggestLocation": "true",
"locations": [
{
"displayName": "Conf Room 32/1368",
"locationEmailAddress": "******@imgeek.onmicrosoft.com" }
]
},
"MaxCandidates": 99
}';
$getEventsUrlTeste = '/me/findMeetingTimes';
->addHeaders(array(
'Prefer' => 'outlook.timezone="'.$viewData['userTimeZone'].'"'
))->setReturnType(Model\Event::class)->execute();