0

I am trying to create an Outlook VSTO add-in that will work as follows:

  1. There is a configuration screen where user configures syncing details
  2. Once the syncing details are configured, whenever Outlook is opened or when an appointment is added/updated/deleted to the Calendar, triggers the add-in that syncs with an online server.

Is it possible to create VSTO add-in that runs without user interaction ?

I found this link VSTO Addin Outlook Appointment delete and write event fired only if opened first but it seems to trigger only when an appointment is opened.

devanalyst
  • 1,348
  • 4
  • 28
  • 55
  • Of course, you can do anything you want as soon as your addin is loaded. – Dmitry Streblechenko Feb 06 '19 at 19:17
  • Do you mean in the ThisAddin_Startup event ? Or is there any other event that I am missing ? – devanalyst Feb 07 '19 at 19:00
  • Yes, you will have a pointer to the Outlook.Application object by then. – Dmitry Streblechenko Feb 07 '19 at 23:17
  • @DmitryStreblechenko, is there any way that I can keep an add-in running after outlook has closed or push outlook to the background ? I need to sync some data to the server and in case user closes Outlook before the process is done, I need some way to keep the process running. – devanalyst Feb 10 '19 at 16:31
  • No, you cannot do that. And if you prevent Outlook from closing, it will disable your addin. You need to save your sync state so that you can pick where you left the next time your run. – Dmitry Streblechenko Feb 10 '19 at 18:17

0 Answers0