Import a BCS Model
Scenario/Problem: You need to import a BCS model.
Solution: Use the Import-SPBusinessDataCatalogModel cmdlet.
The Import-SPBusinessDataCatalogModel cmdlet enables you to import a model file from a local or shared drive. Use a BCS metadata object variable as the Identity, as shown in Listing 15.5.
Listing 15.5. Importing a BCS Model
Import-SPBusinessDataCatalogModel -Identity $bcsMeta -Path E:\BCS_Model.bdcm
Several optional switch parameters can be used:
• Force: Forces an overwrite if the model exists
• ModelsIncluded: Specifies that models are included in the imported XML file
• PermissionsIncluded: Specifies that the permissions to the model are included
• PropertiesIncluded: Specifies that BCS properties are included ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access