Get client side Hero webpart PropertiesJson

First create a new page and configure your Hero webpart content as needed.

propertiesjson 01

Using PnP PowerShell connect to the site and get the page:

Connect-PnPOnline -Url https://$tenant.sharepoint.com/sites/$siteUrl

$homePage = Get-PnPClientSidePage -Identity $pagename

$heroWebPart = $homePage.Controls | ? {$_.Title -eq “Hero”}

$heroWebPart.PropertiesJson

propertiesjson 02

 

Copy this Json content and add it to the following code to update your Hero webpart, make sure the json code is in one continuous line, otherwise you’ll get error.

propertiesjson 03

 

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s