Create Promoted Links programmatically TemplateFeatureID Office 365 SharePoint 2013

InfoPath alternatives for form designing SharePoint

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 simple process as we use any list template while creating list.

You may also check:
– Create Page Programmatically CSOM PowerShell script SharePoint 2013

– Create View in lists or libraries CSOM PowerShell Office 365 SharePoint 2013

– FAST Query Language (FQL) features that are deprecated in SharePoint 2013.

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.Url=$list.Url
$ListInfo.TemplateType = “170”
$ListInfo.TemplateFeatureId=”192EFA95-E50C-475e-87AB-361CEDE5DD7F”;
$spList = $web.Lists.Add($ListInfo)
$spList.Description = $ListTitle
$spList.Update()

Thanks,
Sambita

Similar SharePoint 2013 Tutorials


About Sambita Rath

I have 9 years of exprience into SharePoint implementation, architecture, Administrator, development and Training.Designing Information Architecture in SharePoint 2007, 2010,2013 and Office 365.

View all posts by Sambita Rath →

Leave a Reply