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

How to launch a document by clicking a link to the file?

Word: <a href='ms-word:ofe|u|path/to/web/word/document.docx'>Link to document</a> Excel: <a href='ms-excel:o...