Skip to content

Instantly share code, notes, and snippets.

Last active Sep 10, 2017
What would you like to do?
param (
[string] $TargetWeb,
[string] $TasksLibraryName,
[string] $PageName = "Kanban Board",
[string] $StatusFieldName="Status"
# Connect to the target SharePoint Website
Connect-PnPOnline $TargetWeb
# Fetch the tasks list for the specified name
$tasksList = Get-PnPList $TasksLibraryName
# Add the Client-side Page with the name specified
Add-PnPClientSidePage -Name $PageName
# Add the Kanban Board WebPart and configure its properties
Add-PnPClientSideWebPart -Page $PageName -Component KanbanBoard -WebPartProperties @{tasksListId=$tasksList.Id; statusFieldName="Status"}
# Publish the page when all config is done
Set-PnPClientSidePage -Identity $PageName -Publish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment