Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 844 Bytes

GetSPOWebPartXml.md

File metadata and controls

21 lines (18 loc) · 844 Bytes

#Get-SPOWebPartXml Returns the webpart XML of a webpart registered on a site ##Syntax

Get-SPOWebPartXml -ServerRelativePageUrl <String> -Identity <WebPartPipeBind> [-Web <WebPipeBind>]

##Parameters

Parameter Type Required Description
Identity WebPartPipeBind True Id or title of the webpart. Use Get-SPOWebPart to retrieve all webpart Ids
ServerRelativePageUrl String True Full server relative url of the webpart page, e.g. /sites/mysite/sitepages/home.aspx
Web WebPipeBind False The web to apply the command to. Omit this parameter to use the current web.
##Examples

###Example 1

PS:> Get-SPOWebPartXml -ServerRelativePageUrl "/sites/demo/sitepages/home.aspx" -Identity a2875399-d6ff-43a0-96da-be6ae5875f82

Returns the webpart XML for a given webpart on a page.