Open topic with navigation

# Insert a Folder

To insert a mail folder, your `insertXML` must include the following properties:

Property name | Description
--- | ---
`TYPE` | The type of item to insert (set this property to `FOLDER`).
`FOLDER_ID` | The folder to add the folder to. You can specify an ID or a folder name such as `Inbox`. Folder names `Calendar` `Contacts` `DeletedItems` `Drafts` `Inbox` `Journal` `Notes` `Outbox` `SentItems` `Tasks` `MsgFolderRoot` `PublicFoldersRoot` `Root` `JunkEmail` `SearchFolders` `VoiceMail` `RecoverableItemsRoot` `RecoverableItemsDeletions` `RecoverableItemsVersions` `RecoverableItemsPurges` `ArchiveRoot` `ArchiveMsgFolderRoot` `ArchiveDeletedItems` `ArchiveRecoverableItemsRoot` `ArchiveRecoverableItemsDeletions` `ArchiveRecoverableItemsVersions` `ArchiveRecoverableItemsPurges` `SyncIssues` `Conflicts` `LocalFailures` `ServerFailures` `RecipientCache` `QuickContacts` `ConversationHistory` `ToDoSearch`
`USER_ID` | The ID of the user account to add the folder to.

For example, to create a subfolder within the folder "inbox":

    <insertXML>
      <insert>
        <reference>New folder</reference>
        <property name="FOLDER_ID" value="Inbox"/>
        <property name="TYPE" value="FOLDER"/>
        <property name="USER_ID" value="2fbcacc4-2b74-4cfd-bb3e-edad8f0cd0cc"/>
        <xmlmetadata>
            <DisplayName>New Folder</DisplayName>
        </xmlmetadata>
      </insert>
    </insertXML>

© Copyright 2019 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm