Basically I have a list having thousands of record.
I want to add a new column with default value into this list..so how it could be done so that every existing records will have this default column value.
What solutions are possible? Please Help.
Thanks Vlad… It is working fine 🙂
looking forward to done this job without powershell, if any.
But for the meantime, it works for me. Again thanks a million.
Should look something like this in PowerShell. Please test and tell me if all is ok :).Â
$spWeb = Get-SPWeb http://website
$spList = $spWeb.Lists[“ListName”]
$spListItems = $spList.Items
$defaultvalue = “vlad rocks”
ForEach ($spItems in $spListItems) Â {
$spItems[“YourColumnName”] = $defaultvalue
$spItems.Update()
}