Prevent other users from opening/creating the same object

G

Geert De Pauw

I've wrote a vb com add-in for outlook 2000/2002 using the Outlook COM
Add-In project template from http://www.microeye.com
We use MS Exchange 2000.
Each client has his own exchange mailbox and there's one public
exchange mailbox for everyone with full access for the calendar and
task folder.
The add-in is installed on every client.
Now when user1 created an appointment on the public mailbox, his
add-in will respond, but also the add-ins from the other users who
have opened the public mailbox and where the add-in is installed.
Here comes the problem, when you use item.save in each add-in in
item_itemAdd routine, the last one keeps track of the item, so user1
doesn't have any permissions to change anything again. User1 receives
the message "item is changed by another user of window, would you make
a copy…". It seems that this item is locked for user1. It remains so
until you close outlook and restart outlook again.
Is there an easy way to lock an item to be modified by another user,
to hold the other add-ins from processing code?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top