Microsoft KB Archive/824101

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

Article ID: 824101

Article Last Modified on 1/6/2006

-

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 &quot;Old Name.&quot; 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(&quot;Sharepoint Folders&quot;).Folders(&quot;OldName&quot;) oFolder1.Name = &quot;NewName&quot; ' This will still return &quot;OldName&quot; Debug.Print &quot;Incorrect: &quot; & oFolder1.Name Set oFolder1 = Nothing ' The following line will reference the folder by its new name Set oFolder2 = session.Folders(&quot;Sharepoint Folders&quot;).Folders(&quot;NewName&quot;) ' This will be correct: Debug.Print &quot;Correct: &quot; & oFolder2.Name End Sub



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.

Additional query words: OL2003

Keywords: kbprogramming kbinfo kbmsg kbbug kbpending KB824101

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.