產生應用程式以管理 SharePoint 清單中資料Generate an app to manage data in a SharePoint list

[!VIDEO nb:cid:UUID:34ccfd46-7826-49ce-90d8-cf6a144b6968]

在 PowerApps 中,自動產生一個有三個畫面的應用程式來管理 SharePoint 清單中的資料,無論該網站是內部部署或是在雲端。In PowerApps, generate a three-screen app automatically to manage data in a SharePoint list, whether the site is on-premises or in the cloud.

根據預設,每個產生的應用程式都會有一個畫面用來瀏覽記錄、一個畫面用來顯示記錄的詳細資料,並有一個畫面用來建立或更新記錄。By default, every generated app has a screen for browsing records, a screen for showing details of a record, and a screen for creating or updating records. 每個畫面的初始版面配置與內容會自動決定,但您或許需要自訂應用程式以符合您的需求。The initial layout and content for each screen is automatically determined, but you'll probably need to customize the app to suit your needs.

如果您不熟悉 PowerApps,請參閱 Introduction to PowerApps (PowerApps 簡介)。If you're unfamiliar with PowerApps, see Introduction to PowerApps.

撰寫本文時,PowerApps 支援自訂清單,但不支援程式庫。As of this writing, PowerApps supports custom lists but not libraries. 此外,您可以在某些類型的資料行中顯示資料,例如 [選項] 和 [圖片],但您無法更新該資料。In addition, you can show data in some types of columns, such as Choice and Picture, but you can't update that data. 如需詳細資訊,請參閱已知問題For more information, see Known issues.

注意:如果任何資料行名稱包含空格,PowerApps 會顯示成 "_x0020_"Note: If any column name contains a space, PowerApps will show it as "_x0020_". 例如,"Column Name" 會顯示成 "Column_x0020_Name"For example "Column Name" will display as "Column_x0020_Name".

指定 SharePoint 應用程式Specify a SharePoint app

  1. 如果您尚未建立 SharePoint 的連線,請建立連線。If you haven't already created a connection to SharePoint, create one.
  2. 以下列其中一種方式開啟 PowerApps:Open PowerApps in either of these ways:

  3. 在 [從您的資料開始] 下方,按一下或點選 [SharePoint] 圖格上的 [手機配置]。Under Start with your data, click or tap Phone layout on the SharePoint tile.

指定網站與清單Specify a site and a list

  1. 在 [連線至 SharePoint 網站] 下,輸入或貼上包含所要使用清單的網站 URL,然後按一下或點選 [前往]。Under Connect to a SharePoint site, type or paste the URL to the site that contains the list that you want to use, and then click or tap Go.

    注意︰不要在 URL 中包含特定的清單。Note: Don't include a specific list in the URL.

  2. 在 [選擇清單] 下,按一下或點選所要使用清單的名稱。Under Choose a list, click or tap the name of the list that you want to use.

    按一下或點選排序按鈕即可依字母順序排序清單名稱。You can sort the list names alphabetically by clicking or tapping the sort button.

    您也可以在搜尋方塊中輸入或貼上至少一個字母,即可僅顯示包含您所指定文字的清單名稱。You can also type or paste at least one letter in the search box to show only those list names that contain the text that you specify.

    並非所有類型的清單預設都會出現。Not all types of lists appear by default. 如果您想要使用的清單名稱未出現,請捲動到底部,然後在包含 [輸入自訂清單名稱] 的方塊中輸入清單名稱。If the name of the list that you want to use doesn't appear, scroll to the bottom, and then type the list name in the box that contains Enter custom list name.

  3. 按一下或點選 [連接] 以產生應用程式。Click or tap Connect to generate the app.

    連線按鈕

  4. 如果系統提示您觀看簡介導覽,請按一下或點選 [下一步] 熟悉 PowerApps 介面的主要區域 (或按一下或點選 [略過])。If you're prompted to take the intro tour, click or tap Next to get familiar with key areas of the PowerApps interface (or click or tap Skip).

    開啟簡介導覽畫面

    您日後可以隨時按一下或點選右上角附近的問號圖示,然後按一下或點選 Take the intro tour (簡介導覽),即可觀看導覽。You can always take the tour later by clicking or tapping the question-mark icon near the upper-right corner and then clicking or tapping Take the intro tour.

後續步驟Next steps

  • 若要儲存您剛才產生的應用程式,請按下 Ctrl-S。To save the app that you've just generated, press Ctrl-S.
  • 若要自訂瀏覽器畫面 (預設會出現),請參閱自訂版面配置To customize the browse screen (which appears by default), see Customize a layout.
  • 若要自訂詳細資料或編輯畫面,請參閱自訂表單To customize the details or edit screens, see Customize a form.