0

Can someone please provide an example using SPE to set the field "Quick Action Bar" of my templates to required "Required"?

SPE that will set the Field "Quick Action Bar"

1

1 Answer 1

1

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()

Not the answer you're looking for? Browse other questions tagged or ask your own question.