You cannot change the name of a SharePoint Portal Server folder by using the Outlook Object Model (824101)



The information in this article applies to:

  • Microsoft Office Outlook 2003

SYMPTOMS

If you programmatically change the name of a folder that stores Microsoft SharePoint Portal Server data, the display name of the SharePoint Portal Server folder is changed in the Microsoft Outlook user interface. However, the Name property in the Outlook Object Model is not updated to the new name.

CAUSE

This problem occurs because of a limitation in the integration of SharePoint Portal Server and Outlook.

WORKAROUND

To work around this problem, rereference the folder by using the Outlook Object Model. For example, consider a scenario in which you add a SharePoint Portal Server folder to Outlook and then name the folder "Old Name." You can run the following Outlook Visual Basic for Applications code to rename the folder and to retrieve the new name:
Sub RenameSharepointFolder()
   Set oFolder1 = session.Folders("Sharepoint Folders").Folders("OldName")
   oFolder1.Name = "NewName"
   ' This will still return "OldName"
   Debug.Print "Incorrect: " & oFolder1.Name
   Set oFolder1 = Nothing
   ' The following line will reference the folder by its new name
   Set oFolder2 = session.Folders("Sharepoint Folders").Folders("NewName")
   ' This will be correct:
   Debug.Print "Correct: " & oFolder2.Name
End Sub

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Modification Type:MinorLast Reviewed:1/6/2006
Keywords:kbProgramming kbinfo kbMsg kbBug kbpending KB824101 kbAudEndUser