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.
0 个评论
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!