-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #620 from JimmyHang/main
New script sample to view all Power Apps in tenant
- Loading branch information
Showing
4 changed files
with
104 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
} | ||
] |