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
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
Why would it be an issue to get it by code?
If I want to get the folder by Id and the Id-field is null
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.
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.
var folder = new Folder(fieldTemplateSystemId, “MyFolderName”)
{
Id = “MyStringID”,
ParentFolderSystemId = Guid.Empty, // If root
SystemId = Guid.NewGuid(),
};
_folderService.Create(folder);
Not possible to edit the id via back office?
Not sure about that but usually not, check it!
The id is not editable in UI and it’s by design.