Query regarding outlook 2007

HI all,

In the application I’m working, currently outlook 2003 is used. We’ll be upgrading this to outlook 2007 very soon.

For creating an outlook item (appointment, task etc), in one of the script libraries a part of the following code is used.

createOutlookItem.UserProperties.add(“createdBy”,1).Value = “1”

	createOutlookItem.UserProperties.add("currentRegion",1).Value = getCurrentRegion()

	createOutlookItem.UserProperties.add("contactDocKey",1).Value = olParms.contact_docKey

	createOutlookItem.UserProperties.add("accountDocKey",1).Value = olParms.account_docKey

	createOutlookItem.UserProperties.add("activityDocKey",1).Value = olParms.activity_docKey

This code works fine with outlook 2003, but it throws an error message with outlook 2007. It would be really helpful if anyone of you can let be know the substitute for the same code that can be used in outlook 2007. Also, will commenting this code effect the existing functionality? Please reply.

Thanks in Advance.

Subject: Query regarding outlook 2007

That’s a 100% pure Microsoft question – it has nothing whatsoever to do with Notes, Domino, Lotus or IBM. Don’t you think you’d have a better chance finding an answer in a Microsoft-oriented venue?

Subject: RE: Query regarding outlook 2007

Thanks for ur reply.

Since this code is present in one of the script libraries of a lotus notes database, i thought I’ll get some help in this forum.

Subject: RE: Query regarding outlook 2007

I think it is fair that you post this question in this forum.

Outlook mail is used with Notes in many firms, NotesDomino is compatible with it, and the future success of Notes Domino in firms often hinges on our ability to successfully integrrate Notes dBs into Outlook mail.

As to your question, I do not personnally have an answer - sorry. You might try also registering with the Microsoft version of this forum, as I have done for VB and others, although generally I have not found them as helpful as IBM’s Forums …

Good luck.

Subject: RE: Query regarding outlook 2007

There’s “fair” and then there’s “sensible” – if I’m looking for answers, I generally go to places where the answers are most likely to be found. I’m sure a lot of the people reading this forum have a lot of program use in common, but I wouldn’t post questions here regarding the COM API for any of them UNLESS I was having a problem with a quirk of the LotusScript language while using htem.

Subject: Query regarding outlook 2007

Got the solution.Just have to replace userproperties with ItemProperties for outlook 2007.

Subject: RE: Query regarding outlook 2007

Hi I have the same problem.How is set Item in your script.

Thank you