All posts by chincv

Export List / Library to App Centre

The below script allows you to export a list or library from SharePoint with or without content to the app centre.

$web = Get-SPWeb "WEB URL"
$list = $web.Lists["LIST NAME"]
$list.SaveAsTemplate("TEMPLATE NAME","TEMPLATE TITLE", "TEMPLATE DESCRIPTION", (INCULDE DATA)$true/$false)