Create Promoted Links or Tiles List Programmatically. Tiles list is a new list template introduced in SharePoint 2013 to add links with Tiles view. We can create the Tiles List out of the box using Promoted Links which is a simple process as we use any list template while creating a list.
While creating Tiles List programmatically we have to pass template ID. For Promoted Links the template Id is 170.
But the interesting part is, we will have to pass the TemplateFeatureId as well for Promoted Tiles.
Below code has been written in CSOM and Powershell script.
$ListInfo = New-Object Microsoft.SharePoint.Client.ListCreationInformation
$ListInfo.Title = $listName
$ListInfo.TemplateType = “170”
$spList = $web.Lists.Add($ListInfo)
$spList.Description = $ListTitle
Download FREE SharePoint 2019 Installation PDF Guide
This FREE PDF contains, Steps by step guide to install SharePoint 2019 Preview, prerequisites, hardware and software new features. First impression to SharePoint Server 2019 new modern site, modern lists and modern document libraries.
You May Also like the Following SharePoint Online Tutorials: