title: Outlook Interop 2010 C# Moving Item to Shared OlDefaultFolders.olFolderSentMail
body: <p>SOmething odd is happening. I'm trying to copy and move and item from a local MAPI folder to a remtoe Sent Items folder using GetSharedDefaultFolder. It works for the inbox folder but not sent items, even though i have permissions to it. Any ideas would be great thank you.</p>
  
  <p>The Error is 'Could not complete the operation. One or more parameter values are not valid'</p>
  
  <p>The code sample is:</p>
  
  <pre><code>Outlook.MailItem cItem = (mailmsg as Outlook.MailItem).Copy() as Outlook.MailItem;
  Outlook.NameSpace ns = this.Application.GetNamespace("MAPI");
  //ns.Logon()
  Outlook.Recipient recipient = ns.CreateRecipient("realusera@domain.com");
  recipient.Resolve();
  if (recipient.Resolved)
  {
      MessageBox.Show("Resolved user");
      Outlook.MAPIFolder mapifld = ns.GetSharedDefaultFolder(recipient, Microsoft.Office.Interop.Outlook.OlDefaultFolders.olFolderSentMail);
      cItem = (Outlook.MailItem)cItem.Move(mapifld);
  }
  </code></pre>