Can someone please provide an example using SPE to set the field "Quick Action Bar" of my templates to required "Required"?
-
1Try to use search next time. Example sitecore.stackexchange.com/a/16130/16– Alan PłócieniakMar 20 at 19:15
1 Answer
As seen in the documentation here you can set properties using the automatic property setters/getters.
$item = Get-Item -Path master:/content/home
$item.Title = "New Title"
$item."Closing Date" = [datetime]::Today
As pointed out in the comments from Alan, you can use the example seen in a previous question.
$item = Get-Item -Path master:/content/home
$item.Editing.BeginEdit()
$item["SomeProperty"] = "{000000-0000-0000-0000-000000000}";
$item.Editing.EndEdit()