Conflict in available times for Microsoft Graph meetings

Lucas Dias 0 Reputation points
2023-10-05T18:29:15.2666667+00:00

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 teste2@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 test2@teste.com room, you are blocking time in that room.

This means that the timetable will no longer be available in the teste1@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 = 'reuniao1@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": "conf32room1368@imgeek.onmicrosoft.com"            }              
		]            
	},            
		"MaxCandidates": 99        
	}';        
	       
	$getEventsUrlTeste = '/me/findMeetingTimes';
->addHeaders(array(            
	'Prefer' => 'outlook.timezone="'.$viewData['userTimeZone'].'"'        
))->setReturnType(Model\Event::class)->execute();


Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,464 questions
{count} votes