Links Error for Public Folder Items

G

Guest

Hi All,

I don't know if this is a solvable problem or not but it has had me in a
twist for a couple of days now. I am developing a CRM system for our company
sales team to use and have opted to have all contacts,tasks,journal items,
etc stored in Public Folders on our Exchange server. I have just finished
coding a new Task form to store a Contact Plan to make contact with one or
many customers. On saving the Contact Plan item I have all the selected
customers from an OVC window added to the Links collection by the following
VBScript:

Set custSelection = viewCustomers.Selection
If custSelection.Count > 0 Then
For J = custSelection.Count To 1 Step -1
Set objItem = custSelection.Item(J)
Item.Links.Add(objItem)
Next
End If

Where viewIndividuals is an OVC control. This works seamlessly until you try
and open the saved Contact Plan from another machine (or perhaps user?!) and
attempt to open a link - the links are still shown in the collection but when
they are double-clicked an error is seen saying that the requested operation
(Open Calendar???) is not allowed on items of this type. I need the links
collection to work not only the activities page of a contact but so that when
the Contact Plan is completed, the VBScript can go through the links and
update their 'NextContactDueBy' date.

I have a suspicion that this problem is something to do with access
permissions or ownership of the items but can't see how this should be a
problem when using public folders (I have set all the relevant access
permissions to 'OWNER' for testing purposes). Any help with this would be
terribly appreciated!

Best Regards,
Dan Allason
System Developer
 
S

Sue Mosher [MVP-Outlook]

That sounds just plain weird. Do the items show up OK in the Activities page? And they work OK on the machine where the links are created? Are the users working from two different server replicas? Or one with offline folders?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
G

Guest

Hi Sue,

Thanks for your reply! The items were showing up fine on the activities page
of the creating machine but not on the non-creating machine. Both machines
were working on a single Exchange server in the online Public Folders tree. I
have now opted to link the items manually with a GUID and just have the form
create modular objects for the two links I need with each item. It works out
better this way because I am linking to a SQL back-end and wouldn't be able
to generate the links collection for records added by a back end user (at
least not very easily).

By the way - I read your book and was helped greatly by it! Big Fan!

Dan
 

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