Advertisement
In this article we are able to see how to create a
calculated formula with field in SharePoint using PowerShell.
How to create a site collection using PowerShell
Hide columns in list using client side object model in SharePoint
SharePoint Gantt Chart Web Part
Enable the calculated value option in SharePoint using PowerShell.
How to create a site collection using PowerShell
Hide columns in list using client side object model in SharePoint
SharePoint Gantt Chart Web Part
Enable the calculated value option in SharePoint using PowerShell.
What is calculated field?
Calculated field option is available in the “Out Of the
Box”, which we are able to combine two or more fields, comparing the dates to
get the output as per the user requirement.
Add-PSSnapin
Microsoft.SharePoint.PowerShell
$web = Get-SPweb
"http://dotnetsharepoint.com/sites/sharepoint/calcalated"
$list=$web.Lists["EmployeeInfo"]
$list.Fields.Add("Full Name",
"Calculated", 0)
$field =
$list.Fields.GetField("Full Name")
$field.OutputType="Text"
$field.Formula="=CONCATENATE([FirstName],[LastName])"
$field.update()
$web.Dispose()
0 comments:
Post a Comment