生成应用以管理 SharePoint 列表中的数据Generate an app to manage data in a SharePoint list

在 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,请参阅 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_”。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 中添加特定列表。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).

    打开简介教程屏幕

    稍后可以通过单击或点击右上角附近的问号图标,然后单击或点击“获取简介教程”,随时获取教程。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.