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

2 次查看(过去 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 中查找有关 Startup and Shutdown 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by