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.

Listing 15.4. Getting a BCS Metadata Object


$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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.223.151.158