This project has moved and is read-only. For the latest updates, please go here.



Web Service

Web Part Pages

Supported Operations

Operation Options MSDN Documentation Introduced
AddWebPart pageUrl, webPartXml, storage WebPartPagesWebService.AddWebPart Method 0.5.0
AddWebPartToZone pageUrl, webPartXml, storage, zoneId, zoneIndex WebPartPagesWebService.AddWebPartToZone Method  0.7.2
DeleteWebPart pageUrl, storageKey, storage  WebPartPagesWebService.DeleteWebPart Method  2014.02
GetWebPart2 pageUrl, storageKey, storage, behavior WebPartPagesWebService.GetWebPart2 Method 0.2.8
GetWebPartPage documentName, behavior WebPartPagesWebService.GetWebPartPage Method 0.2.8
GetWebPartProperties pageUrl, storage WebPartPagesWebService.GetWebPartProperties Method 0.4.5
GetWebPartProperties2 pageUrl, storage, behavior WebPartPagesWebService.GetWebPartProperties2 Method 0.2.8
SaveWebPart2 pageUrl, storageKey, webPartXml, storage, allowTypeChange WebPartPagesWebService.SaveWebPart2 Method 2014.02


Last edited Jan 2, 2015 at 10:09 PM by sympmarc, version 7


randy77 Mar 19, 2013 at 1:16 AM 
I get an error using GetWebPart2. The pageUrl parameter should be completely lowercase. As a workaround the following hack works for me:
$().SPServices({operation: 'GetWebPart2', async: false, pageUrl: '</pageUrl><pageurl>http://server/sites/rootweb/web1/default.aspx</pageurl><pageUrl>', storageKey: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',storage: 'Shared',behavior:'Version3', completefunc: function(...) { ... }})