views:

5

answers:

0

Hi,

I've created an Outlook 2010 addin with VS 2010. I'm using the Solution Module feature to add custom folders in which I want to display items from an LOB SQL database. The cutom folders appear in the Solution Module correctly.

If I use Application.CreateItem to create a contact & then call item.Save, it gets saved in the default contacts folder, as expected.

If I use folder.Add(olOutlookContact) instead so that I can save it in the custom folder, if I then call item.Save it still gets saved to the default contacts folder, not the custom folder. If I don't call item.Save, it doesn't get saved anywhere.

I'm obviously doing something wrong here, but from the documentation that I've read this should be working.

I'd appreciate any pointers in the right direction.

Thanks,

Yann