管理應用程式Managing apps

與同事和其他人共用應用程式,以及控制要使用和共用哪個應用程式版本。Share apps with colleagues and others, and control which version of an app is used and shared. 使用應用程式、連線和其他資源的容器。Work with containers for apps, connections, and other resources.

You will learn how to...

共用您的應用程式Share your apps

PowerApps 雖可用來建置應用程式以解決自己的業務需求,但真正的神奇之處來自與其他人共用這些應用程式。It's great to build apps that address your own business needs, but the real magic of PowerApps comes from sharing those apps with others. 您現在知道如何建置應用程式時,您將在本主題中學習如何共用它。Now that you know how to build an app, in this topic you will learn how to share it. 您可以與特定使用者或群組共用應用程式,也可以與整個組織共用應用程式。You can share an app with specific users or groups, or you can share it with your entire organization. 當您與他人共用應用程式時,他們可以在瀏覽器中或在適用於 Windows、iOS 或 Android 的 PowerApps Mobile 中,從 Dynamics 365 執行該應用程式。When you share an app with someone, they can run it from Dynamics 365 in a browser or in PowerApps Mobile for Windows, iOS, or Android. 如果您賦予某人參與者權限,他們也可以更新該應用程式。If you give someone contributor permissions, they can also update the app.

準備共用應用程式Prepare to share an app

您必須先將應用程式儲存到雲端,才能與任何人共用。You must save an app to the cloud before you can share it with anyone. 給予應用程式有意義的名稱和描述,以便使用者知道應用程式的內容並可輕鬆地從清單中挑選它。Give the app a meaningful name and description, so people know what your app is about and can easily pick it out from a list. 在 PowerApps Studio 中,按一下或點選 [檔案],然後輸入描述。In PowerApps Studio, click or tap File, then enter a description.


請注意,當您儲存變更時,共用的人員都會取得您對共用應用程式所做的變更。Be aware that any changes you make to a shared app will flow through to the people you shared it with as soon as you save the changes. 如果您改善應用程式,則有所助益,但如果您移除或大幅變更功能,也可能會影響其他人。This can be great if you improve the app, but can also impact others if you remove or significantly change features.

共用應用程式Share an app

在 web.powerapps.com 中,按一下應用程式圖格上的省略符號 (.In web.powerapps.com, on an app tile, click the ellipsis (. .. .),然後按一下 [共用]。.), and then click Share.

從 web.powerapps.com 共用應用程式

您可以從這裡共用應用程式,也可以控制應用程式的版本 (我們將在下一個主題中討論)。From here, you can share an app and also control app versioning, which we'll cover in the next topic. 指定要共用應用程式的使用者和群組,以及他們應該擁有的角色 - 使用者參與者Specify the users and groups to share the app with and what role they should each have - User or Contributor. 按一下或點選 [儲存]。Click or tap Save.


如果您選擇透過電子郵件通知使用者,與您共用應用程式的每個人都會收到內含 Dynamics 365 連結的電子郵件。If you choose to notify users via email, everyone you shared the app with receives an email with a link to Dynamics 365. 應用程式參與者也會收到 web.powerapps.com 的連結。如果有人未遵循 Dynamics 365 的連結,則不會為其顯示應用程式。App contributors also receive a link to web.powerapps.com. If someone doesn't follow the link to Dynamics 365, the app will not show up for them there. 應用程式會在 AppSource 中,但他們必須自行將它新增至 Dynamics 365。It will be in AppSource, but they'll have to add it to Dynamics 365 themselves.

Dynamics 365 中的應用程式

權限和授權Permissions and licensing

我們不會詳細探討權限和授權,但我們想要討論幾個與共用相關的基本概念︰We're not going to get into detail about permissions and licensing, but we want to cover a couple of basics related to sharing:

  • 使用者和參與者都需要共用應用程式所用之任何資料連線和閘道的權限。Users and contributors need permissions to any data connections and gateways that a shared app uses. 有些權限是由應用程式隱含隨附,但其他人必須明確獲得授與。Some permissions come along implicitly with the app, but others must be explicitly granted.
  • 如果應用程式使用 Common Data Service 實體,則使用者和參與者都需要 Common Data Service 資料庫的存取權。If the app uses Common Data Service entities, users and contributors need access to the Common Data Service database. 如果參與者直接處理實體,他們也需要 PowerApps "P2" 授權。Contributors also need a PowerApps "P2" license if they work directly with entities.

共用應用程式很容易,而且是取得您認為實用的應用程式並將它提供給組織內其他人員使用的好方法。Sharing apps is easy, and it's a great way to take an app that you find useful and make it available to people across your organization. 在下一個主題中,我們將說明當您使用並共用應用程式時,如何控制哪個版本的應用程式為作用中。In the next topic we'll explain how to control which version of an app is active when you use and share the app.

設定您的應用程式版本Version your apps

如果發生錯誤,或您儲存不該有的應用程式變更,最好知道 PowerApps 可助您一臂之力。對於儲存在雲端的應用程式,PowerApps 會保留您所做的變更歷程記錄。If something goes wrong or you save a change to an app you shouldn't have, it's good to know that PowerApps can help you out. For apps that are saved in the cloud, PowerApps keeps a history of the changes that you make. 您可以檢視已儲存的版本,並視需要將應用程式還原為舊版。You can view the versions that are saved and restore your app to a previous version if necessary. 請注意,如果共用應用程式,則與您共用的人員也會收到已還原的版本。Be aware that if the app is shared, the people you shared with also receive the restored version.

如何設定應用程式版本How to version an app

在 web.powerapps.com 中,按一下應用程式圖格上的省略符號 (.In web.powerapps.com, on an app tile, click the ellipsis (. .. .),然後按一下 [詳細資料]。.), and then click Details.


您可以從這裡控制應用程式的版本,也可以共用應用程式 (我們在先前的主題中討論過)。From here, you can control app versioning and also share an app, which we covered in the previous topic. 若要移回前一版的應用程式,請針對適當的版本 (範例中的第 3 版) 按一下 [還原],然後再次按一下 [還原] 進行確認。To move back to a previous version of an app, click Restore for the appropriate version (version 3 in the example), and click Restore again to confirm. 如範例所示,還原為第 3 版之後,PowerApps 會將它視為新的版本 (範例中的第 5 版),而非只是覆寫第 4 版。As you see in the example, after you restore to version 3, PowerApps treats this as a new version (version 5 in the example), rather than just overwriting version 4.


如果您需要還原舊版的應用程式,版本設定十分有用,因此請在您的應用程式遇到任何問題時記住這點。Versioning can be very helpful if you need to restore a previous version of an app, so keep it in mind if you run into any issues with your apps. 現在知道如何共用您的應用程式並視需要加以還原,我們將繼續進行本課程中最後一個應用程式管理層面 - 管理環境。Now that know how to share your apps and restore them if necessary, we'll move on to the last aspect of app management in this course - managing environments.


如果您到目前為止都遵循本課程執行,您曾經花一些時間使用 web.powerapps.com。不論您是否知道該網站,您一直都是在特定「環境」中作業。If you have followed along with the course so far, you've spent some time working in web.powerapps.com. Whether you knew it or not, you have been working in a specific environment the whole time. 環境就只是一群應用程式和其他資源 (稍後會有更詳細的說明)。An environment is simply a grouping of apps and other resources (more on this in a minute). 查看 web.powerapps.com 中的畫面右上方,您會看到可顯示您目前環境的下拉式選單。Look at the upper right of the screen in web.powerapps.com, and you see a drop-down menu that shows your current environment.


如果您不熟悉 PowerApps,您此時可能只有預設環境。If you are new to PowerApps, you might have only the default environment at this point. 按一下或點選功能表以查看是否有其他可用的環境。Click or tap the menu to see if there are other environments available.

為何要使用環境?Why use environments?

環境是應用程式和其他資源 (例如資料連線和來自 Microsoft Flow 的流量) 的容器。An environment is a container for apps and other resources, like data connections and flows from Microsoft Flow. 這是根據商務需求將事物分組的方式。It's a way to group things based on business requirements. 有幾個原因會建立預設環境以外的其他環境︰There are several reasons to create additional environments beyond the default one:

  • 依照部門區分應用程式開發︰在大型組織中,每個部門可以在不同的環境中作業。Separate app development by department: in a large organization, each department could work in a different environment.
  • 支援應用程式生命週期管理 (ALM)︰開發中的應用程式和已完成並共用的應用程式可以有個別的環境。Support application lifecycle management (ALM): you could have separate environments for apps in development and apps that you have already finished and shared.
  • 管理資料存取︰每個環境都可以有自己的 Common Data Service 資料庫,而且其他資料連線均為環境特有 (也就是,不會在各環境間共用)。Manage data access: each environment can have its own Common Data Service database, and other data connections are specific to the environment (i.e. they're not shared across environments).

請記住,環境只與應用程式建立者和 PowerApps 系統管理員相關。One thing to keep in mind is that environments are relevant only to app creators and PowerApps admins. 當您與使用者共用應用程式時,該使用者只要有適當的權限,就會執行應用程式。When you share an app to a user, that user just runs the app as long as they have the right permissions. 它們不必擔心其來自哪個環境。They don't have to worry about what environment it came from.

建立環境Create an environment

到目前為止,我們已在本課程中強調應用程式建立者,但環境是由系統管理員建立及維護。So far in this course, we have focused on app creators, but environments are created and maintained by admins. 如果您不是系統管理員,當您與系統管理員討論環境設定時,這項資訊仍然很有幫助。If you're not an admin, this information can still be helpful when you talk to your admin about setting up environments. 在 PowerApps 系統管理中心,依序按一下或點選 [環境] 和 [新增環境]。In the PowerApps admin center, click or tap Environments then New environment. 在 [新增環境] 畫面上,輸入環境的名稱、選取區域、選擇是否要為環境建立 Common Data Service 資料庫,然後按一下或點選 [建立環境]。On the New environment screen, enter a name for the environment, select a region, select whether to create a Common Data Services database for the environment, and click or tap Create an environment.


這樣就大功告成了,您現在有可在其中作業的新環境。That's it, you now have a new environment to work in. 如果您回到 web.powerapps.com,您會在 [環境] 下拉式功能表中看見它。If you go back to web.powerapps.com, you will see it in the environments drop-down menu.

管理環境的存取權Manage access to an environment

如果您具有下列身分,即可存取環境:You have access to an environment if you are:

  • 環境系統管理員︰您在環境中具有完整權限。An Environment Admin: you have full permissions in the environment.
  • 環境製造者︰您可以查看所有應用程式、建立應用程式,以及使用 Common Data Service (適用其他權限)。An Environment Maker: you can see all apps, create apps, and work with the Common Data Service (other permissions apply).

身為系統管理員,您可從 [環境] 索引標籤授與環境的存取權。首先,按一下或點選環境。As an admin, you grant access to an environment from the Environments tab. First, click or tap an environment. 若要新增某個人 (此範例中的 [環境製造者]),請依序按一下或點選 [環境角色] 和 [環境製造者]。To add someone (an Environment Maker in this example), click or tap Environment roles then Environment Maker. 從這裡,將使用者或群組新增到此角色,然後按一下 [儲存]。From there, add users or groups to the role and click Save.


您現在了解環境的優點,以及如何加以建立並授與其存取權。You now understand the benefits of environments, and how to create them and grant access to them. 即使您沒有系統管理員角色,最好能夠了解其運作方式。Even if you're not in an admin role, it's helpful to know how this works. 這就來到「管理應用程式」章節的結尾,而您已準備好移至下一個章節 (「管理資料」),其重點在於 Common Data Service。This brings us to the end of the Managing apps section, and you're well prepared to move on to the next section, "Managing data", which focuses on the Common Data Service.


您已完成 Microsoft PowerApps 引導式學習的 [管理應用程式] 一節。You've completed the Managing apps section of Microsoft PowerApps Guided Learning.

You learned how to...

Next Tutorial

管理資料Managing data


  • Michael Blythe
  • olprod