將 Business Connectivity Services 混合式案例部署為外部清單Deploy the Business Connectivity Services hybrid scenario as an external list

摘要:了解如何以手動方式將解壓縮的 Business Data Connectivity 模型、 模型匯入 SharePoint Online 和手動建立外部清單中出現的內部部署資料。Summary: Learn how to manually extract a Business Data Connectivity model, import the model into SharePoint Online, and manually create an external list to surface the on-premises data.

本文中的程序顯示如何整合使用外部清單的外部資料。請確定您已已經備妥 Business Connectivity Services 混合式案例的適用環境之前您依照本文中的程序。The procedures in this article show you how to integrate external data by using an external list. Make sure you've already prepared your environment for the Business Connectivity Services hybrid scenario before you follow the procedures in this article.

手動解壓縮到 BDCM 檔案的外部內容類型Manually extract an external content type to a BDCM file

您已設定的外部內容類型必須以手動方式擷取及儲存為副檔名為.bcdm 檔案。做法是使用 Visual Studio 2012。遵循中的程序How to: 將 App-Scoped 外部內容類型轉換成承租人範圍MSDN 程式庫中。The external content type that you configured must be manually extracted and saved as a file with a .bcdm extension. This is done by using Visual Studio 2012. Follow the procedure in How to: Convert an App-Scoped External Content Type to Tenant-Scoped in the MSDN Library.

您將需要.bcdm 檔案以便進行下一個程序。You'll need the .bcdm file for the next procedure.

將 BDCM 檔案匯入 SharePoint Online BDC 中繼資料存放區Import the BDCM file into the SharePoint Online BDC Metadata Store

當您在 BDC 模型檔案匯入 SharePoint Online 時,您必須登入至 SharePoint Online 管理員網站做為同盟帳戶 (從內部部署匯入至 Office 365 帳戶使用目錄同步作業)。此同盟的帳戶應該也授與全域系統管理員權限在 Office 365 中。匯入 BDC 模型來設定混合式 BCS、 時需要使用同盟的使用者帳戶的 SharePoint Server 進行特定的通話。請注意帳戶也必須在 SharePoint Server 中有填入的使用者設定檔。When you import the BDC Model file into SharePoint Online, you must be logged in to the SharePoint Online administrator site as a federated account (an account imported to Office 365 from On-Premise using Directory Sync). This federated account should also be given Global Administrator rights in Office 365. When importing the BDC Model to configure Hybrid BCS, certain calls are made to SharePoint Server that will require you use a federated user account. Be aware the account must also have a populated user profile in SharePoint Server.

若要將 BDCM 檔案匯入 SharePoint Online BDC 中繼資料存放區To import a BDCM file into the SharePoint Online BDC Metadata Store

  1. 使用系統管理帳戶,登入您的 SharePoint Online 租用,然後開啟 [SharePoint Online 系統管理中心。Log on to your SharePoint Online tenancy by using an administrative account, and then open the SharePoint Online Administration Center.

  2. 在 [快速啟動] 中按一下 [ bcs]。In the Quick Launch, click bcs.

  3. Business connectivity services] 下按一下 [管理 BDC 模型及外部內容類型]。Under business connectivity services, click Manage BDC Models and External Content Types.

  4. 在 [編輯] 索引標籤上按一下 [匯入]。On the Edit tab, click Import.

  5. 按一下 [瀏覽],然後瀏覽至您匯出的.bdcm 檔案。Click Browse, and then browse to the .bdcm file that you exported.

  6. 保留預設選取的檔案類型進階設定],然後再按一下 [匯入。匯入、 BCS 驗證模型中的 XML、 查詢連線設定物件,並連線至內部部署 OData 來源。Leave the default selections for File Type and Advanced Settings, and then click Import. During the import, BCS validates the XML in the model, queries the connection settings object, and connects to the on-premises OData source.

當您將 BDCM 模型匯入至 BDC 中繼資料服務時,就會建立外部內容類型。此外部內容類型可供該承租人使用。When you import a BDCM model into the BDC metadata service, you are creating an external content type. This external content type is available for tenant-wide use.

建立 BCS 混合式案例的外部清單Create an external list for the BCS hybrid scenario

下一步是建立外部清單。The next step is to create the external list.

建立 BCS 混合式案例的外部清單To create an external list for the BCS hybrid scenario

  1. 開啟您所使用的網站擁有者權限和同盟帳戶的帳戶所準備的網站。Open the site that you prepared by using an account that has site owner permissions and is a federated account.

  2. [快速啟動] 上按一下 [網站內容]和 [新增應用程式On the Quick Launch, click Site Contents, and then click add an app.

  3. 按一下 [外部清單,並且會提供 [清單名稱。Click External List, and then provide a name for the list.

  4. 按一下 [外部內容類型] 方塊中選取 [外部內容類型] 連結。Click the Select External Content Type link next to the External Content Type box.

  5. 選取您所建立的外部內容類型、 按一下 [確定] 和 [建立Select the external content type that you created, click OK, and then click Create.

  6. 開啟外部清單,並確認已顯示外部資料。Open the external list and confirm that your external data is displayed.

清單建立之後,驗證案例Once the list is created, validate the scenario.

另請參閱See also

概念Concepts

部署 sharepoint Business Connectivity Services 混合式解決方案Deploy a Business Connectivity Services hybrid solution in SharePoint