Skip to content

Commit

Permalink
Merge pull request #620 from JimmyHang/main
Browse files Browse the repository at this point in the history
New script sample to view all Power Apps in tenant
  • Loading branch information
pkbullock authored Nov 15, 2023
2 parents 068859d + b6bc01a commit 92a8fb2
Show file tree
Hide file tree
Showing 4 changed files with 104 additions and 0 deletions.
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"
}
]
}
]

0 comments on commit 92a8fb2

Please sign in to comment.