Folder DisplayName in EWS cannot be renamed

Holger Huo 0 Reputation points
2023-09-20T06:33:20.2466667+00:00

Hi! When I was browsing my EWS folders with EWSEditor, I found some of my folders' names are in wrong language, and they cannot be renamed or deleted.

The folders I wanted to rename were the following:

  • Reminders (提醒): used for storing reminders set from within EWS calendar events;
  • People I Know (我认识的人): actual use unknown but there is an identical folder named in the correct language coexist in EWS directory
  • Top of information store ➡️ Yammer Root ➡️
    • Inbound (传入)
    • Outbound (传出)
    • Feeds (源)
    •       -  which seem to be used by Yammer
      
    
          These folders seem to have a property Distinguished folder which prevents them from being renamed or deleted. Is there a way to force rename (change display name value) or to recreate such folders and relate them to there uses? 
    
          Thanks in advance!
    
          ![2d49b78b-9aae-4428-847f-47dc23075b16](/api/attachments/916e84b7-770a-491f-9261-ac0fa2c6e422?platform=QnA)
    
    
Exchange Server
Exchange Server
A family of Microsoft client/server messaging and collaboration software.
1,185 questions
Exchange Server Development
Exchange Server Development
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Development: The process of researching, productizing, and refining new or existing technologies.
528 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Jarvis Sun-MSFT 10,186 Reputation points Microsoft Vendor
    2023-09-20T09:14:11.7666667+00:00

    Hi @Holger Huo ,

    Thanks for posting in our Q&A forum.

    From your description I understand that you are having trouble renaming or deleting some of your folders in EWS. If there are any misunderstanding, feel free to let us know.

    There are a few ways to rename a folder in EWS. One way is to use the Ews.RenameFolder method.

    Another way is to use the UpdateFolder operation. You can use this operation to rename a folder by using the FolderType object and setting the DisplayName property to the new name.

    In this case, you can try creating new folders with the correct names and relating them to their uses. To create a single folder, you can send a CreateFolder operation request message. The CreateFolder operation request indicates that the parent folder is the Inbox, the DisplayName is “Custom Folder”, and the FolderClass element value is IPF.Note.

    Please refer to this blog: https://www.rebex.net/secure-mail.net/features/ews-folders.aspx#rename

    Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.