Skip to content

Commit

Permalink
Update Set-PnPWikiPageContent.md (#1996)
Browse files Browse the repository at this point in the history
  • Loading branch information
PowershellScripts authored Jun 16, 2022
1 parent bb7664c commit 60c0f74
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions documentation/Set-PnPWikiPageContent.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,24 @@ Set-PnPWikiPageContent -Path <String> -ServerRelativePageUrl <String>
```

## DESCRIPTION
This cmdlet updates the content of the specified wikipage to the value specified either in a string or a file.

## EXAMPLES

### EXAMPLE 1
```powershell
Set-PnPWikiPageContent -ServerRelativePageUrl /sites/PnPWikiCollection/SitePages/OurWikiPage.aspx -Path .\sampleblog.html
```
Sets the content of OurWikiPage to the content of sampleblog.html file.

### EXAMPLE 2
```powershell
$htmlContent = "<div>test</div>"
Set-PnPWikiPageContent -ServerRelativePageUrl /sites/PnPWikiCollection/SitePages/OurWikiPage.aspx -Content $htmlContent
```

Sets the content of OurWikiPage as "test".

## PARAMETERS

### -Connection
Expand Down

0 comments on commit 60c0f74

Please sign in to comment.