使用环境和 Microsoft PowerAppsWorking with environments and Microsoft PowerApps

通过 PowerApps,你可以在不同的环境中工作,并在它们之间轻松切换。With PowerApps, you can work in different environments and easily switch among them. 有关环境的概述,请参阅 环境概述,该文章详细介绍了使用环境的原因以及如何创建和管理环境。For an overview of environments, see Environments overview, which explains in detail why you use environments and how you can create and manage them. 本文的范围将涵盖有关环境的以下主题:The scope of this article will cover the following topics on environment:

  • 如何在 powerapps.com 上切换环境how to switch the environment on powerapps.com
  • 如何在正确的环境中创建应用how to an create app in the right environment
  • 如何在正确的环境中查看应用how to view an app in the right environment

切换环境Switch the environment

注册并首次登录到 powerapps.com 时,你很可能会登录到默认环境。When you sign up and first sign in to powerapps.com, you will likely land in a default environment. 通过查看页面的右上角即可对此进行验证。You can verify this by looking at the upper-right corner of the page.

默认环境

每个人均可访问默认环境The Default environment is accessible to everyone. 你可以开始在此环境中创建应用并与其他用户共享。You can start creating apps in this environment and share your apps with other users. 你还可以访问其他环境,如那些 自己创建的或他人创建但你有权访问的环境。You may also have access to other environments, such as those you create yourself or those created by others but you have access to. 通过单击右上角中的“环境”下拉菜单,然后选择不同的环境即可切换环境。You can switch environments by clicking the environment dropdown in the upper-right corner and selecting a different environment. 在此示例中,我正从默认环境切换到环境 1In this example, I am switching from Default environment to Environment 1.

切换环境

一旦切换到另一个环境(例如环境 1),你会在此新环境中看到你所创建的或有权访问的所有应用。Once you switch to a different environment (such as Environment 1), you will see all the apps you created or have access to in this new environment.

在正确的环境中创建应用Create apps in the right environment

你可以在有权访问的现有环境或新环境中创建应用。You can create apps in existing environments that you have access to or in a new environment. 但创建自己的环境需要使用特定计划。Creating your own environment, however, requires a specific plan. 有关详细信息,请参阅 本主题For more information, see this topic. 创建应用前,始终确保你选择是要在其中创建应用的环境Before you create an app, always make sure you select the environment you want to app to be in. 否则,你必须在环境之间移动应用。Otherwise, you will have to deal with moving apps between environments.

  1. 如果你在访问 powerapps.com,则选择要在其中创建应用的环境。If you are in powerapps.com, select the environment you would like to create your app in. 如果你在访问 PowerApps Studio适用于 Web 的 PowerApps Studio,请跳到步骤 4。If you are in PowerApps Studio or PowerApps Studio for web, skip to step 4.
  2. 选择“+ 新应用Select + New app
  3. 选择“打开 PowerApps Studio”或“适用于 Web 的 PowerApps StudioSelect Open PowerApps Studio or PowerApps Studio for web
  4. PowerApps Studio适用于 Web 的 PowerApps Studio 打开后,再次在右上角选择环境。When PowerApps Studio or PowerApps Studio for web opens, select the environment again at the top right corner. 我们将在以后改进这种体验,但在当前版本中,每次在新环境中创建应用时必须执行上述操作。We will improve this experience in the future but, in the current release, you must select this every time you want to create an app in a new environment.

    Studio 切换环境

  5. 在“帐户”页上,选择当前环境名称旁的“更改”。On the Account page, select Change next to the name of the current environment.

    Studio 切换环境

  6. 选择要在其中创建应用的环境。Select the environment you want to create your app in.

    Studio 切换环境

  7. 选择“新建”开始创建应用。Select New to start creating an app. 你的应用现在将驻留在第 6 步所选的环境中。Your app now will reside in the environment you selected in step 6.

    Studio 切换环境

在正确的环境中查看应用View apps in the right environment

无论你使用的是 powerapps.com、适用于 Windows 的 PowerApps Studio 还是适用于 Web 的 PowerApps Studio,你所看到的应用、连接列表等始终根据在下拉菜单中选择的环境进行筛选。Whether you are working in powerapps.com, PowerApps Studio for Windows, or PowerApps Studio for web, the list of apps, connections, etc. that you see is always filtered based on the environment that's selected in the dropdown. 如果未看到所查找的应用,则请始终确认是否选择了正确的环境。If you don't see the apps you are looking for, always confirm whether the right environment is selected.

同样,要在 powerapps.com 中切换环境:Again, to switch environments in powerapps.com:

切换环境

要在适用于 Windows 的 PowerApps Studio 或适用于 Web 的 PowerApps Studio 中切换环境:To switch environments in PowerApps Studio for Windows or PowerApps Studio for web:

Studio 切换环境

有关环境的详细信息,请参阅 概述For more information about environments, see this overview.