2

When creating a PowerApp using a SharePoint list as the data source, any new columns/fields created in the SP list are not retroactively refreshed in the PowerApp.

The data (SP list items) refreshes, but the new columns/fields are not available.

In other words, if I...

  1. Create a SP list named "foo" with 2 columns (first name, last name)
  2. Create a PowerApp using the SP list "foo" as the data source
  3. Update SP list "foo" to have 3 columns (first name, last name, e-mail)
  4. When I reload the PowerApp, it will not show a field for "e-mail".

Am I doing it wrong?

4

1 回答 1

4

当 PowerApps 从 SharePoint 列表或其他数据源生成应用程序时,它会根据数据源的当前状态生成应用程序。如果数据源发生更改,应用程序将不会自动编辑自身以解决此问题。

因此,要根据更改的数据源更新应用程序,您需要手动调整它。幸运的是,这并不难。

下面,我有一个从名为“PowerAppList”的列表生成的应用程序,它有一个 Title 列和一个 Column1 列。然后我添加了 Column2。如您所见,它仍然没有被调整。

来自 SharePoint 的应用程序

首先,我们需要刷新应用程序中的数据源。这允许应用程序重新获取列表的架构,这很重要,因为它已更改。

刷新

刷新后,我们需要更改应用程序中的表单。在这里,我在第三个屏幕上选择了编辑表单。请注意,我们现在为 Column2 提供了一个隐藏卡片,因为我们刷新了数据源。

编辑屏幕

当我们单击眼睛图标时,数据卡将添加到第 2 列的表单中。

使用添加的数据卡编辑屏幕

请注意,您需要为应用程序中的每个表单执行此操作。在这里,我们将卡片添加到详细信息屏幕。

添加数据卡的详细信息屏幕

于 2017-04-19T20:36:20.063 回答