I can create workspace by using this code:
var myWorkspace = Content.CreateNew("/Root/Sites/Default_Site", "Workspace", "MyWorkspace"); await myWorkspace.SaveAsync();
How to set myWorkspace using dotnet client to have File in 'Allowed child types'?
I can create workspace by using this code:
var myWorkspace = Content.CreateNew("/Root/Sites/Default_Site", "Workspace", "MyWorkspace"); await myWorkspace.SaveAsync();
How to set myWorkspace using dotnet client to have File in 'Allowed child types'?
Copyright © 2021 Jogjafile Inc.
AllowedChildTypesis a field of the workspace content, so you can set its value like other field values. The value should be an array of strings (array of content type names).There's also an OData action for adding a content type to a content's AllowedChildTypes, its name is
AddAllowedChildTypesand it should get a contentType array (string array of content type names) as parameter.https://community.sensenet.com/docs/built-in-odata-actions-and-functions/#add-types-to-allowed-child-types-action