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 -ServiceContext
http://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
that is referenced.
18.223.151.158