I'm writing an add-in for Outlook, but I'm not sure this is the way to
go. I want to access a public folder and move the documents over to
SharePoint. I've already gotten the code for SharePoint to work. I
could use functionality out of the box, but we're on Exchange 5.5,
which doesn't support this, so I'm having to write code to do it.
Anyway, I originally looked into just querying Exchange and doing it,
but there was one gotcha after another, so I decided to do it inside
an Outlook add-in. However, I only want one instance doing the work.
If there are 2 or 3 people that'll have this add-in, I'd only like one
of them doing the work.
Maybe this is as simple as putting a button on Outlook that
essentially says I'll do the work and sets a flag; but if the others
don't hit the button, they don't. I'm going to have a thread that
wakes up every 15 minutes and does the processing it needs. I could
check the flag to see if it's set, and if not, let it just go back to
sleep.
Is there a better way to acheive this functionality?
Ken Slovak - [MVP - Outlook] - 09 Mar 2007 23:25 GMT
You can make it work by having each addin check something that's available
to all and setting a flag true on a first one wins setup. Then clear the
flag when the addin terminates.
I never like sleeping Outlook threads, why not set a timer to run the code
in the addin every 15 minutes, or just check the system time/date?

Signature
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
> I'm writing an add-in for Outlook, but I'm not sure this is the way to
> go. I want to access a public folder and move the documents over to
[quoted text clipped - 16 lines]
>
> Is there a better way to acheive this functionality?