Skip to content

Commit b0e4fbf

Browse files
Power Apps Action Pack Reports
1 parent 6aac39b commit b0e4fbf

25 files changed

+1417
-8
lines changed

O365/PowerApps/Common/Get-PAFDlpPolicy.ps1

+3
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ Param(
5656
Import-Module Microsoft.PowerApps.Administration.PowerShell
5757

5858
try{
59+
if($Properties -contains '*'){
60+
$Properties = @('*')
61+
}
5962
ConnectPowerApps -PAFCredential $PACredential
6063

6164
[hashtable]$getArgs = @{'ErrorAction' = 'Stop'}

O365/PowerApps/Connections/Get-PAFConnection.ps1

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Requires -Version 5.0
1+
#Requires -Version 5.0
22
#Requires -Modules Microsoft.PowerApps.Administration.PowerShell
33

44
<#
@@ -80,6 +80,10 @@ Param(
8080
Import-Module Microsoft.PowerApps.Administration.PowerShell
8181

8282
try{
83+
if($Properties -contains '*'){
84+
$Properties = @('*')
85+
}
86+
8387
ConnectPowerApps -PAFCredential $PACredential
8488

8589
[hashtable]$getArgs = @{'ErrorAction' = 'Stop'}

O365/PowerApps/Connections/Get-PAFConnectionRoleAssignment.ps1

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Requires -Version 5.0
1+
#Requires -Version 5.0
22
#Requires -Modules Microsoft.PowerApps.Administration.PowerShell
33

44
<#
@@ -60,6 +60,10 @@ Param(
6060
Import-Module Microsoft.PowerApps.Administration.PowerShell
6161

6262
try{
63+
if($Properties -contains '*'){
64+
$Properties = @('*')
65+
}
66+
6367
ConnectPowerApps -PAFCredential $PACredential
6468

6569
[hashtable]$getArgs = @{'ErrorAction' = 'Stop'}

O365/PowerApps/Connectors/Get-PAFConnector.ps1

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Requires -Version 5.0
1+
#Requires -Version 5.0
22
#Requires -Modules Microsoft.PowerApps.Administration.PowerShell
33

44
<#
@@ -80,6 +80,9 @@ Param(
8080
Import-Module Microsoft.PowerApps.Administration.PowerShell
8181

8282
try{
83+
if($Properties -contains '*'){
84+
$Properties = @('*')
85+
}
8386
ConnectPowerApps -PAFCredential $PACredential
8487

8588
[hashtable]$getArgs = @{'ErrorAction' = 'Stop'}

O365/PowerApps/Connectors/Get-PAFConnectorRoleAssignment.ps1

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Requires -Version 5.0
1+
#Requires -Version 5.0
22
#Requires -Modules Microsoft.PowerApps.Administration.PowerShell
33

44
<#
@@ -56,6 +56,9 @@ Param(
5656
Import-Module Microsoft.PowerApps.Administration.PowerShell
5757

5858
try{
59+
if($Properties -contains '*'){
60+
$Properties = @('*')
61+
}
5962
ConnectPowerApps -PAFCredential $PACredential
6063

6164
[hashtable]$getArgs = @{'ErrorAction' = 'Stop'}

O365/PowerApps/Environments/Get-PAFCdsDatabaseLanguages.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Requires -Version 5.0
1+
#Requires -Version 5.0
22
#Requires -Modules Microsoft.PowerApps.Administration.PowerShell
33

44
<#
@@ -29,7 +29,7 @@
2929
The location of the current environment
3030
3131
.Parameter Filter
32-
Finds langauges matching the specified filter (wildcards supported)
32+
Finds languages matching the specified filter (wildcards supported)
3333
3434
.Parameter ApiVersion
3535
The api version to call with

O365/PowerApps/Environments/Get-PAFEnvironmentLocations.ps1

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Requires -Version 5.0
1+
#Requires -Version 5.0
22
#Requires -Modules Microsoft.PowerApps.Administration.PowerShell
33

44
<#
@@ -48,6 +48,9 @@ Param(
4848
Import-Module Microsoft.PowerApps.Administration.PowerShell
4949

5050
try{
51+
if($Properties -contains '*'){
52+
$Properties = @('*')
53+
}
5154
ConnectPowerApps -PAFCredential $PACredential
5255

5356
[hashtable]$getArgs = @{'ErrorAction' = 'Stop'}

O365/PowerApps/Flow/Get-PAFFlow.ps1

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Requires -Version 5.0
1+
#Requires -Version 5.0
22
#Requires -Modules Microsoft.PowerApps.Administration.PowerShell
33

44
<#
@@ -74,6 +74,9 @@ Param(
7474
Import-Module Microsoft.PowerApps.Administration.PowerShell
7575

7676
try{
77+
if($Properties -contains '*'){
78+
$Properties = @('*')
79+
}
7780
ConnectPowerApps -PAFCredential $PACredential
7881

7982
[hashtable]$getArgs = @{'ErrorAction' = 'Stop'}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
#Requires -Version 5.0
2+
#Requires -Modules Microsoft.PowerApps.Administration.PowerShell
3+
4+
<#
5+
.SYNOPSIS
6+
Generates a report with all currencies
7+
8+
.DESCRIPTION
9+
10+
.NOTES
11+
This PowerShell script was developed and optimized for ScriptRunner. The use of the scripts requires ScriptRunner.
12+
The customer or user is authorized to copy the script from the repository and use them in ScriptRunner.
13+
The terms of use for ScriptRunner do not apply to this script. In particular, ScriptRunner Software GmbH assumes no liability for the function,
14+
the use and the consequences of the use of this freely available script.
15+
PowerShell is a product of Microsoft Corporation. ScriptRunner is a product of ScriptRunner Software GmbH.
16+
© ScriptRunner Software GmbH
17+
18+
.COMPONENT
19+
Requires Module Microsoft.PowerApps.Administration.PowerShell
20+
Requires Library script PAFLibrary.ps1
21+
Requires Library Script ReportLibrary from the Action Pack Reporting\_LIB_
22+
23+
.LINK
24+
https://github.com/scriptrunner/ActionPacks/tree/master/O365/PowerApps/_REPORTS_
25+
26+
.Parameter PACredential
27+
[sr-en] Provides the user ID and password for PowerApps credentials
28+
[sr-de] Benutzername und Passwort für die Anmeldung
29+
30+
.Parameter LocationName
31+
[sr-en] The location of the current environment
32+
[sr-de] Standort der aktuellen Umgebung
33+
34+
.Parameter Filter
35+
[sr-en] Finds currencies matching the specified filter (wildcards supported)
36+
[sr-de] Währungen Filter (wildcards werden unterstützt)
37+
38+
.Parameter ApiVersion
39+
[sr-en] The api version to call with
40+
[sr-de] Verwendete API Version
41+
#>
42+
43+
[CmdLetBinding()]
44+
Param(
45+
[Parameter(Mandatory = $true)]
46+
[pscredential]$PACredential,
47+
[Parameter(Mandatory = $true)]
48+
[string]$LocationName,
49+
[string]$Filter,
50+
[string]$ApiVersion
51+
)
52+
53+
Import-Module Microsoft.PowerApps.Administration.PowerShell
54+
55+
try{
56+
[string[]]$Properties = @('CurrencyName','CurrencyCode','IsTenantDefaultCurrency','CurrencySymbol')
57+
ConnectPowerApps -PAFCredential $PACredential
58+
59+
[hashtable]$getArgs = @{'ErrorAction' = 'Stop'
60+
'LocationName' = $LocationName
61+
}
62+
63+
if([System.String]::IsNullOrWhiteSpace($Filter) -eq $false){
64+
$getArgs.Add('Filter',$Filter)
65+
}
66+
if([System.String]::IsNullOrWhiteSpace($ApiVersion) -eq $false){
67+
$getArgs.Add('ApiVersion',$ApiVersion)
68+
}
69+
70+
$result = Get-AdminPowerAppCdsDatabaseCurrencies @getArgs | Select-Object $Properties
71+
72+
if($SRXEnv) {
73+
ConvertTo-ResultHtml -Result $result
74+
}
75+
else{
76+
Write-Output $result
77+
}
78+
}
79+
catch{
80+
throw
81+
}
82+
finally{
83+
DisconnectPowerApps
84+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
#Requires -Version 5.0
2+
#Requires -Modules Microsoft.PowerApps.Administration.PowerShell
3+
4+
<#
5+
.SYNOPSIS
6+
Generates a report with all supported CDS database languages
7+
8+
.DESCRIPTION
9+
10+
.NOTES
11+
This PowerShell script was developed and optimized for ScriptRunner. The use of the scripts requires ScriptRunner.
12+
The customer or user is authorized to copy the script from the repository and use them in ScriptRunner.
13+
The terms of use for ScriptRunner do not apply to this script. In particular, ScriptRunner Software GmbH assumes no liability for the function,
14+
the use and the consequences of the use of this freely available script.
15+
PowerShell is a product of Microsoft Corporation. ScriptRunner is a product of ScriptRunner Software GmbH.
16+
© ScriptRunner Software GmbH
17+
18+
.COMPONENT
19+
Requires Module Microsoft.PowerApps.Administration.PowerShell
20+
Requires Library script PAFLibrary.ps1
21+
Requires Library Script ReportLibrary from the Action Pack Reporting\_LIB_
22+
23+
.LINK
24+
https://github.com/scriptrunner/ActionPacks/tree/master/O365/PowerApps/_REPORTS_
25+
26+
.Parameter PACredential
27+
[sr-en] Provides the user ID and password for PowerApps credentials
28+
[sr-de] Benutzername und Passwort für die Anmeldung
29+
30+
.Parameter LocationName
31+
[sr-en] The location of the current environment
32+
[sr-de] Standort der aktuellen Umgebung
33+
34+
.Parameter Filter
35+
[sr-en] Finds languages matching the specified filter (wildcards supported)
36+
[sr-de] Sprachen Filter (wildcards werden unterstützt)
37+
38+
.Parameter ApiVersion
39+
[sr-en] The api version to call with
40+
[sr-de] Verwendete API Version
41+
#>
42+
43+
[CmdLetBinding()]
44+
Param(
45+
[Parameter(Mandatory = $true)]
46+
[pscredential]$PACredential,
47+
[Parameter(Mandatory = $true)]
48+
[string]$LocationName,
49+
[string]$Filter,
50+
[string]$ApiVersion
51+
)
52+
53+
Import-Module Microsoft.PowerApps.Administration.PowerShell
54+
55+
try{
56+
[string[]]$Properties = @('LanguageName','LanguageDisplayName','IsTenantDefaultLanguag','LanguageLocalizedDisplayName')
57+
ConnectPowerApps -PAFCredential $PACredential
58+
59+
[hashtable]$getArgs = @{'ErrorAction' = 'Stop'
60+
'LocationName' = $LocationName
61+
}
62+
63+
if([System.String]::IsNullOrWhiteSpace($Filter) -eq $false){
64+
$getArgs.Add('Filter',$Filter)
65+
}
66+
if([System.String]::IsNullOrWhiteSpace($ApiVersion) -eq $false){
67+
$getArgs.Add('ApiVersion',$ApiVersion)
68+
}
69+
70+
$result = Get-AdminPowerAppCdsDatabaseLanguages @getArgs | Select-Object $Properties
71+
72+
if($SRXEnv) {
73+
ConvertTo-ResultHtml -Result $result
74+
}
75+
else{
76+
Write-Output $result
77+
}
78+
}
79+
catch{
80+
throw
81+
}
82+
finally{
83+
DisconnectPowerApps
84+
}

0 commit comments

Comments
 (0)