Get a BCS Metadata Object
Scenario/Problem: You need to obtain a BCS metatdata object reference.
Solution: Use the Get-SPBusinessDataCatalogMetadataObject
cmdlet.
To perform import and export operations, you need the related metadata object that stores or will store the BCS entity. Use the Get-SPBusinessDataCatalogMetadataObject
cmdlet to set a variable to the metadata object, as shown in Listing 15.4.
$bcsMeta = Get-SPBusinessDataCatalogMetadataObject -ServiceContexthttp://sp2013 -BDCObjectType Catalog -Name ApplicationRegistry
The BDCObjectType
can be one of the following values:
• Catalog
• Model
• LobSystem
• LobSystemInstance
• Entity
The Name
parameter might be required, based on the BDCObjectType ...
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.