Problem to save contact item in subfolder programmatically

  • Thread starter Thread starter MAFr
  • Start date Start date
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.
 
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);
 
Back
Top