# Creating folder in backoffice

**URL:** <https://forum.litium.com/t/creating-folder-in-backoffice/306>\
**Category:** Questions\
**Created:** [October 23, 2018, 8:10am UTC](https://forum.litium.com/t/creating-folder-in-backoffice/306 "2018-10-23T08:10:15Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![totte.perera](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@totte.perera](https://forum.litium.com/u/totte.perera)\
**Post date:** [October 23, 2018, 8:10am UTC](https://forum.litium.com/t/creating-folder-in-backoffice/306/1 "2018-10-23T08:10:15Z")

</div>

When creating a folder in backoffice its created with an empty id-field. This will be an issue when trying to get the folder with code by id.

Bugg or by design?

Litium version: 6.2.0

---

<div class="post-metadata">

**Author:** ![steve.redstorm](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/steve.redstorm/32/14_2.png) [@steve.redstorm](https://forum.litium.com/u/steve.redstorm)\
**Post date:** [October 23, 2018, 8:16am UTC](https://forum.litium.com/t/creating-folder-in-backoffice/306/2 "2018-10-23T08:16:16Z")

</div>

Why would it be an issue to get it by code?

---

<div class="post-metadata">

**Author:** ![totte.perera](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@totte.perera](https://forum.litium.com/u/totte.perera)\
**Post date:** [October 23, 2018, 8:31am UTC](https://forum.litium.com/t/creating-folder-in-backoffice/306/4 "2018-10-23T08:31:11Z")

</div>

If I want to get the folder by Id and the Id-field is null

---

<div class="post-metadata">

**Author:** ![steve.redstorm](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/steve.redstorm/32/14_2.png) [@steve.redstorm](https://forum.litium.com/u/steve.redstorm)\
**Post date:** [October 23, 2018, 8:42am UTC](https://forum.litium.com/t/creating-folder-in-backoffice/306/5 "2018-10-23T08:42:26Z")

</div>

Yeah somehow I read “created with Guid id-field” 😜  
Yeah in that case you can only get it by SystemId, but you should of course create with an ID to avoid issues on reaching it.

---

<div class="post-metadata">

**Author:** ![totte.perera](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@totte.perera](https://forum.litium.com/u/totte.perera)\
**Post date:** [October 23, 2018, 8:48am UTC](https://forum.litium.com/t/creating-folder-in-backoffice/306/6 "2018-10-23T08:48:18Z")

</div>

So to my next question. How do I add an Id? Can’t find the id-field under properties, for the folder. And I can’t find the id-field when editing the folder template under settings.

---

<div class="post-metadata">

**Author:** ![steve.redstorm](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/steve.redstorm/32/14_2.png) [@steve.redstorm](https://forum.litium.com/u/steve.redstorm)\
**Post date:** [October 23, 2018, 9:19am UTC](https://forum.litium.com/t/creating-folder-in-backoffice/306/7 "2018-10-23T09:19:37Z")

</div>

var folder = new Folder(fieldTemplateSystemId, “MyFolderName”)  
{  
Id = “MyStringID”,  
ParentFolderSystemId = Guid.Empty, // If root  
SystemId = Guid.NewGuid(),  
};  
\_folderService.Create(folder);

---

<div class="post-metadata">

**Author:** ![totte.perera](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@totte.perera](https://forum.litium.com/u/totte.perera)\
**Post date:** [October 23, 2018, 9:22am UTC](https://forum.litium.com/t/creating-folder-in-backoffice/306/8 "2018-10-23T09:22:09Z")

</div>

Not possible to edit the id via back office?

---

<div class="post-metadata">

**Author:** ![steve.redstorm](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/steve.redstorm/32/14_2.png) [@steve.redstorm](https://forum.litium.com/u/steve.redstorm)\
**Post date:** [October 23, 2018, 9:27am UTC](https://forum.litium.com/t/creating-folder-in-backoffice/306/9 "2018-10-23T09:27:19Z")

</div>

Not sure about that but usually not, check it!

---

<div class="post-metadata">

**Author:** ![patric.forsgard](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/patric.forsgard/32/10_2.png) [@patric.forsgard](https://forum.litium.com/u/patric.forsgard)\
**Post date:** [October 23, 2018, 11:26am UTC](https://forum.litium.com/t/creating-folder-in-backoffice/306/10 "2018-10-23T11:26:23Z")

</div>

The id is not editable in UI and it’s by design.
