Steve Faleiro
Posts: 15
Joined: 2024-09-12
|
I would like to detect when the user cancels an appointment in Outlook. Cancellation of a appointment or meeting can be done either by right-clicking on the item in the list view and selecting `Cancel` from the context menu, or from the command button located in the Appointment window ribbon menu.
I need to be able to detect when the user cancelled the appointment and then run my own code.
Thanks in advance for your response! |
|
Dmitry Kostochko
Add-in Express team
Posts: 2887
Joined: 2004-04-05
|
Hello Steve,
You can try to handle the OnPropertyChange and OnSend events. To do this, you need (in brief):
1) Handle the Explorer.SelectionChange event.
2) Handle the Inspector.Activate event.
3) In both event handlers, check if item is Appointment.
4) If so, connect to its OnPropertyChange and OnSend events.
5) In the OnPropertyChange and OnSend event handlers, handle possible scenarios of meeting cancellation (e.g. a single occurrence or the entire series).
I have created a simple sample add-in for you, it performs #1 - #4 tasks, please have a look:
https://add-in-express.com/projects/_dk/adxOL16710Sample.zip |
|
Steve Faleiro
Posts: 15
Joined: 2024-09-12
|
Dmitry Kostochko writes:
Hello Steve,
You can try to handle the OnPropertyChange and OnSend events. To do this, you need (in brief):
1) Handle the Explorer.SelectionChange event.
2) Handle the Inspector.Activate event.
3) In both event handlers, check if item is Appointment.
4) If so, connect to its OnPropertyChange and OnSend events.
5) In the OnPropertyChange and OnSend event handlers, handle possible scenarios of meeting cancellation (e.g. a single occurrence or the entire series).
I have created a simple sample add-in for you, it performs #1 - #4 tasks, please have a look:
https://add-in-express.com/projects/_dk/adxOL16710Sample.zip
Hi Dmitry,
That worked. Thank you! |
|
Dmitry Kostochko
Add-in Express team
Posts: 2887
Joined: 2004-04-05
|
Hello Steve,
You are welcome! |
|