ĐÀO TẠO DOANH NGHIỆP : SỞ KHOA HỌC CÔNG NGHỆ TỈNH ĐỒNG NAI

ENTERPRISE TRAINING: DONG NAI DEPARTMENT OF SCIENCE AND TECHNOLOGY.

123

Wednesday, March 14, 2012

How to Create Fields to Sharepoint List by Windows PowerShell ISE

Below is list data type of fields TypeName -------- Counter Text Note Choice MultiChoice GridChoice Integer Number ModStat Currency DateTime Lookup Boolean Threading ThreadIndex Guid Computed File Attachments User URL Calculated Recurrence CrossProjectLink ContentTypeId MultiColumn LookupMulti UserMulti WorkflowStatus AllDayEvent WorkflowEventType Create new list for lookup with name is Departments then add new...

How to create Content type – Site Column – Add site column exists to content type by Windows PowerShell ISE

Create content types Open Windows PowerShell ISE  | copy this segment code and paste to here then click Run script $spWeb = Get-SPWeb http://quochung-axioo:90 $spWeb.AvailableContentTypes | Select Name $parent = $spWeb.AvailableContentTypes["Document Sets"] $contentType =  New-Object Microsoft.SharePoint.SPContentType -ArgumentList @($parent, $spWeb.ContentTypes, "Finance") $contentType.Group = "My Content Type" $contentType.Description =...