Wednesday 8 January 2014

Problem Description:

Set default value to column via Powershell.

Resolution:


$w = Get-SPWeb http://localhost
$l = $w.GetListFromUrl("/Lists/RequestList/DefaultStatus.aspx")
$f = $l.Fields["Status"]
$f.DefaultValue = "Delivered"
$f.Update()


Feel free to revert in-case of any query...


Product Applies To:

·         SharePoint Server 2010
·         SharePoint Foundation 2010
·         SharePoint Server 2013



No comments:

Post a Comment