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

1 回表示 (過去 30 日間)
Ashleen Hayes
Ashleen Hayes 2017 年 1 月 19 日
回答済み: the cyclist 2017 年 1 月 19 日
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 Center および File ExchangeActiveX についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by