Retirement of certain SharePoint Online WebPartPagesWebService methods

SharePoint team

We’ve identified an issue with five methods belonging to the deprecated WebPartPageWebService API (https://<Site>/_vti_bin/WebPartPages.asmx) that could cause impact to data integrity.

These methods are:

As a result, we are retiring these methods and they will stop returning data after October 12, 2020.

Transition from SOAP to CSOM

Developers should update any existing processes or integrations that use the previously mentioned methods in the WebPartPageWebService to call methods in the LimitedWebPartManager class of the SharePoint Client-Side Object Model (version 16.1.20324.12000, or newer). For more information on how to use CSOM, check out the documentation.

Please use Microsoft Graph APIs where possible, but as the related web part APIs are not yet exposed within Microsoft Graph, CSOM is the answer here.

Setting Web Part Object Properties

To assign an object property to a web part using CSOM:

  • Import the web part using LimitedWebPartManager.ImportWebPart
  • Add the web part using LimitedWebPartManager.AddWebPart

Getting Web Part Connection Info

The LimitedWebPartManager class includes a new HasWebPartConnections property that allows you to determine whether a web part page connection exists.

Feedback usabilla icon