共享应用资源Share app resources

共享应用前,先考虑应用依赖的资源类型,如以下一个或多个资源类型:Before you share an app, consider the types of resources on which it relies, such as one or more of the following:

  • 到数据源的连接a connection to a data source
  • 本地数据网关an on-premises data gateway
  • 自定义连接器a custom connector
  • Excel 工作簿或其他服务an Excel workbook or other service
  • a flow

其中的某些资源会在共享应用时自动共享。Some of these resources are shared automatically when you share the app. 而其他资源需要你或与你共享应用的人执行额外操作,以使应用按预期的方式运行。Other resources require you or the people with whom you share the app to take extra steps so that the app works as you expect.

还可以与整个组织共享连接、自定义连接器和本地数据网关。You can also share your connections, custom connectors and on-premises data gateway with your entire organization.

连接Connections

某些类型的连接(如 SQL Server)会自动共享,而其他类型的连接则需用户自行创建到应用中的数据源或源的连接。Some types of connections, such as SQL Server, are shared automatically, but others require users to create their own connections to the data source or sources in the app.

powerapps.com 上,可以确定某个连接是否会自动共享,并可更新共享权限。On powerapps.com, you can determine whether a connection will be shared automatically, and you can update sharing permissions. 在左侧导航栏中,依次单击或点击“管理”、“连接”,然后单击或点击一个连接。In the left navigation bar, click or tap Manage, click or tap Connections, and then click or tap a connection. 如果出现“共享”选项卡,则连接将自动共享。If the Share tab appears, the connection will be shared automatically.

连接详细信息页中的“共享”选项卡

本地数据网关On-premises data gateways

如果创建和共享的应用包含本地源的数据,则本地数据网关本身及该网关的某些类型的连接将自动共享。If you create and share an app that includes data from an on-premises source, the on-premises data gateway itself and certain types of connections to that gateway will be shared automatically. 对于任何没有自动共享的连接,可以手动将其共享(如之前部分所述),或让应用提示用户创建其自己的连接。For any connection that isn’t shared automatically, you can share it manually (as the previous section shows) or let the app prompt users to create their own connections. 若要显示已配置网关的连接:To show the connection or connections with which a gateway has been configured:

  1. 打开 powerapps.com,在左侧导航栏中单击或点击“管理”,然后单击或点击“网关”。Open powerapps.com, click or tap Manage in the left navigation bar, and then click or tap Gateways.
  2. 单击或点击一个网关,然后单击或点击“连接”选项卡。Click or tap a gateway, and then click or tap the Connections tab.

备注

如果手动共享一个或多个连接,可能需要在下列情况下重新共享:If you share one or more connections manually, you might need to reshare them under these circumstances:

  • 向已共享的应用添加本地数据网关。You add an on-premises data gateway to an app that you’ve already shared.
  • 更改与你共享应用(该应用具有本地数据网关)的用户或组的设置。You change the set of people or groups with whom you’ve shared an app that has an on-premises data gateway.

自定义连接器Custom connectors

共享使用自定义连接器的应用时,自定义连接器会自动共享,但用户必须自行创建与它的连接。When you share an app that uses a custom connector, it is automatically shared, but users must create their own connections to it.

powerapps.com 上,可以查看或更新自定义连接器的权限。On powerapps.com, you can view or update permissions for a custom connector. 在左侧导航栏中,依次单击或点击“管理”、“连接”、“新建连接”(位于右上角)。In the left navigation bar, click or tap Manage, click or tap Connections, and then click or tap New connection (in the upper-right corner). 依次单击或点击“自定义”和自定义连接器,查看它的详细信息。Click or tap Custom, and then click or tap a custom connector to display details about it.

Excel 工作簿Excel workbooks

如果共享的应用所使用的数据并非所有用户都能访问(如云存储帐户中的 Excel 工作簿),则共享数据If a shared app uses data to which not all users have access (such as an Excel workbook in a cloud-storage account), share the data.

Flows

如果共享包含流的应用,则系统将提示运行该应用的用户确认或更新流所依赖的任何连接。If you share an app that includes a flow, users who run the app will be prompted to confirm or update any connections on which the flow relies. 此外,只有创建该流的用户能自定义其参数。In addition, only the person who created the flow can customize its parameters. 例如,可以创建一个向指定地址发送电子邮件的流,但其他用户不能更改该地址。For example, you can create a flow that sends mail to an address that you specify, but other users can’t change that address.