Update an OData Connection

Scenario/Problem: You need to make a change to an existing OData connection for Business Connectivity Services.

Solution: Use the Set-SPODataConnectionSetting cmdlet.

The Set-SPODataConnectionSetting cmdlet enables you to update existing OData connections for Business Connectivity Services. You simply use the Name of the connection as shown in Listing 15.11 or provide an OData Connection setting object using the Identity parameter, as shown in Listing 15.12.

Listing 15.11. Updating an OData Connection for BCS Using the Name

Set-SPODataConnectionSetting -Name "PhillyBikeNetwork"-ServiceContext "http://sp2013" -ServiceAddressUrl"http://gis.phila.gov/ArcGIS/rest/services/PhilaOITGIS_Transportation/MapServer?f=json&pretty=true" ...

Get PowerShell™ for SharePoint® 2013 How-To now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.