How do I check for conflicts in appointments in Outlook from Matlab?

조회 수: 1 (최근 30일)
I currently have code that will create an appointment at a certain date and time. I am trying to check to see if this appointment will be in conflict with anything else on my Outlook Calendar. This is my current if statement block
if appointment.Conflicts.Count > 0
prompt = 'You are busy during that time, choose another start date and time ';
appointment.Start = input(prompt);
prompt = 'and duration in minutes ';
appointment.Duration = input(prompt);
end
Whether I have an appointment or not in the same time slot, the conflicts count is always 0 and the code does not go through the if block.

채택된 답변

the cyclist
the cyclist 2017년 1월 19일
I've never tried to do anything like this, so I am certainly no expert. But I was curious, and did find this old Stack Overflow answer. It states that that variable tracks edit conflicts (e.g. when syncing devices), not scheduling conflicts. The answers there seem to have a couple suggestions.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 ActiveX에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by