Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New script sample to view all Power Apps in tenant #620

Merged
merged 3 commits into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions scripts/powerapps-get-all-apps/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
---
plugin: add-to-gallery
---

# Get all PowerApps in your tenant

## Summary

Sample script to create a lists of all apps in your tenant


# [Power Apps PowerShell](#tab/powerapps-ps)
```powershell

#get all apps
$apps = Get-AdminPowerApp

#Array to hold result
$powerApps = @()
#Iterate through each field in the array
Foreach ($app in $apps)
{
#Send Data to object array
$powerApps += New-Object PSObject -Property @{
'AppName' = $app.AppName
'DisplayName' = $app.DisplayName
'CreatedTime' = $app.CreatedTime
'Owner' = $app.Owner.displayName
'LastModifiedTime' = $app.LastModifiedTime
'EnvironmentName' = $app.EnvironmentName
'IsFeaturedApp' = $app.IsFeaturedApp
'appType' = $app.Internal.appType
}
}

#exporting the array to csv
$powerApps | Export-Csv "C:\Development\PowerShell\TEMP\powerAppsExport.csv" -NoTypeInformation -Force

```
[!INCLUDE [More about Power Apps PowerShell](../../docfx/includes/MORE-POWERAPPS.md)]
***


## Contributors

| Author(s) |
|-----------|
| Jimmy Hang |


[!INCLUDE [DISCLAIMER](../../docfx/includes/DISCLAIMER.md)]
<img src="https://m365-visitor-stats.azurewebsites.net/script-samples/scripts/powerapps-get-all-apps" aria-hidden="true" />
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added scripts/powerapps-get-all-apps/assets/preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 52 additions & 0 deletions scripts/powerapps-get-all-apps/assets/sample.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
[
{
"name": "powerapps-get-all-apps",
"source": "pnp",
"title": "Get all PowerApps in your tenant",
"shortDescription": "Sample script to create a lists of all apps in your tenant and exports to CSV",
"url": "https://pnp.github.io/script-samples/powerapps-get-all-apps/README.html",
"longDescription": [
""
],
"creationDateTime": "2023-11-13",
"updateDateTime": "2023-11-13",
"products": [
"PowerApps"
],
"metadata": [
{
"key": "POWERAPPS-POWERSHELL",
"value": "2.0.0"
}
],
"categories": [
"Report"
],
"tags": [
"Get-AdminPowerApp"
],
"thumbnails": [
{
"type": "image",
"order": 100,
"url": "https://raw.githubusercontent.com/pnp/script-samples/main/scripts/powerapps-get-all-apps/assets/preview.png",
"alt": "Preview of the sample Get all PowerApps in your tenant"
}
],
"authors": [
{
"gitHubAccount": "JimmyHang",
"company": "",
"pictureUrl": "https://github.com/JimmyHang.png",
"name": "Jimmy Hang"
}
],
"references": [
{
"name": "Want to learn more about Power Apps PowerShell and the cmdlets",
"description": "Check out the Power Apps PowerShell documentation site to get started and for the reference to the cmdlets.",
"url": "https://docs.microsoft.com/en-us/power-platform/admin/powerapps-powershell"
}
]
}
]