使用 PowerApps 从 SharePoint 中生成应用Generate an app from within SharePoint using PowerApps

[!VIDEO nb:cid:UUID:639d7eaf-bae5-447c-a34b-ec539a01a15c]

在 PowerApps 中自动生成应用,以便用户管理自定义 SharePoint Online 列表中的项。In PowerApps, automatically generate an app in which users can manage items in a custom SharePoint Online list. 应用将有三个屏幕,用户可以在其中执行以下操作:The app will have three screens in which users can:

  • 浏览列表中的所有记录 (BrowseScreen1)browse through all records in the list (BrowseScreen1)
  • 查看特定记录的所有字段 (DetailsScreen1)view all fields for a specific record (DetailsScreen1)
  • 创建或编辑记录 (EditScreen1)create or edit a record (EditScreen1)

如果从 SharePoint Online 命令栏创建自定义列表的应用,则应用会显示为该列表的视图。If you create an app of a custom list from the SharePoint Online command bar, the app appears as a view of that list. 除了 Web 浏览器,还可以在 Windows Phone、iOS 或 Android 设备上运行应用。You can also run the app on a Windows Phone, iOS, or Android device, in addition to a web browser.

重要说明:PowerApps 并不支持所有类型的 SharePoint 数据。Important: PowerApps doesn't support all types of SharePoint data. 有关详细信息,请参阅 已知问题For more information, see Known issues.

生成应用Generate an app

  1. 在 SharePoint Online 中打开自定义列表,单击或点击命令栏中的“PowerApps”,然后单击或点击“创建应用”。Open a custom list in SharePoint Online, click or tap PowerApps on the command bar, and then click or tap Create an app.

  2. 在显示的面板中,键入应用的名称,然后单击或点击“创建”。In the panel that appears, type a name for your app, and then click or tap Create.

    此时会在 Web 浏览器中出现一个新的选项卡,其中显示根据你的 SharePoint 列表自动生成的应用。A new tab appears in your web browser that shows the app that you automatically generated based on your SharePoint list.

  3. 单击或点击 SharePoint 列表的浏览器选项卡,然后单击或点击“打开”。Click or tap the browser tab for your SharePoint list, and then click or tap Open.

    注意:可能需要刷新浏览器窗口(例如,按 F5 进行刷新),然后应用才会打开。Note: You might need to refresh the browser window (for example, by pressing F5) before the app will open.

    将在单独的浏览器选项卡中打开应用。The app opens in a separate browser tab.

管理应用Manage the app

  • 如果单击或点击“在 PowerApps 中编辑”,应用会在单独的浏览器选项卡中打开,你可以在 Web 版 PowerApps Studio 中更新应用。If you click or tap Edit in PowerApps, the app opens in a separate browser tab where you can update the app in PowerApps Studio for the web.
  • 如果单击或点击“将此视图公开”,组织中的其他人员就可以查看它。If you click or tap Make this view public, other people in your organization can view it. 默认情况下,只有你可以看到你创建的视图。By default, only you can see views that you create. 若要允许他人编辑你的应用,则需与之共享该应用然后授予其“参与者”权限。If you want to allow other people to edit your app, you need to share it with them, and then grant Contributor permissions.
  • 如果单击或点击“删除此视图”,会将此视图从 SharePoint 中删除,但应用仍会留在 PowerApps 中,除非删除它If you click or tap Remove this view, you'll remove the view from SharePoint, but the app will remain in PowerApps unless you delete it.

后续步骤Next steps