0

I've got a Promoted Links list in SharePoint 2016 on premise with an additional custom field 'Category' (type: Text) added to it.

I want to make additional view that filter the Tiles based on this Category field.

Currently I use SharePoint Designer to manually create new Tiles views for SharePoint lists of type 'Promoted Links'.

This works, but I would like to automate this using PnP Powershell

This should be possible using Add-PnPView, but I haven't yet been able to find the correct parameters for this.

1 Answer 1

0

The following commands work:

$caml = '
<Where>
<Eq>
 <FieldRef Name="Category"/>
 <Value Type="Text">MyCategory</Value>
</Eq>
</Where>
'
$result = add-pnpview -List Links -Title "MyCategoryView" -Query $caml -ViewType Html  -fields Title, BackgroundImageLocation, Description, LinkLocation, LaunchBehavior, BackgroundImageClusterX, BackgroundImageClusterY, Category -RowLimit 30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.