Problem to save contact item in subfolder programmatically

M

MAFr

I try to save ContactItem in Contacts subfolder but can't (C#). It always
saves it in root contacts although I tried to navigate through Folders
collection, or activate subfolder through explorer, or whatever I could
imagine. Nothing helped.

Moreover, in MS VB help for ContactItem's save method I found:
"Saves the Outlook item to the current folder or, if this is a new item, to
the Outlook default folder for the item type."

which might be interpreted as forceful saving in Contacts folder.

Does somebody know if there is the way to save in subfolder. Help will be
appreciated.

Thanks in advance.
 
Joined
Jun 2, 2015
Messages
1
Reaction score
0
It's possible to save the contact first in the default location (the Contacts folder) and then move it immediately to an existing subfolder.

Below the C# code:

aContact.Save();
aContact.Move(aSubfolder);
 

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