Friday, November 27, 2015

Get contenttype Id from name using powershell

$cType = $list.ContentTypes | Where {$_.Name -Match $contentTypeName}
Write-Host $cType.Id

No comments:

Post a Comment