You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Email-Exchange/Administration/Contacts/Invoke-RemoveContactTemplates.ps1
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
FunctionInvoke-RemoveContactTemplates {
1
+
functionInvoke-RemoveContactTemplates {
2
2
<#
3
3
.FUNCTIONALITY
4
4
Entrypoint,AnyTenant
@@ -8,23 +8,23 @@ Function Invoke-RemoveContactTemplates {
8
8
[CmdletBinding()]
9
9
param($Request,$TriggerMetadata)
10
10
$APIName=$Request.Params.CIPPEndpoint
11
-
$User=$Request.Headers
11
+
$Headers=$Request.Headers
12
12
13
-
Write-LogMessage-Headers $User-API $APINAME-message 'Accessed this API'-Sev 'Debug'
14
-
$ID=$request.query.ID??$request.body.ID
13
+
Write-LogMessage-Headers $Headers-API $APIName-message 'Accessed this API'-Sev 'Debug'
14
+
$ID=$Request.Query.ID??$Request.Body.ID
15
15
16
16
try {
17
17
$Table=Get-CippTable-tablename 'templates'
18
18
$Filter="PartitionKey eq 'ContactTemplate' and RowKey eq '$id'"
Copy file name to clipboardExpand all lines: Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Email-Exchange/Spamfilter/Invoke-ListConnectionFilter.ps1
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
FunctionInvoke-ListConnectionFilter {
1
+
functionInvoke-ListConnectionFilter {
2
2
<#
3
3
.FUNCTIONALITY
4
4
Entrypoint
@@ -7,10 +7,10 @@ Function Invoke-ListConnectionFilter {
} until ($NewStatus.status-eq'finished'-or$Amount-eq4)
46
51
if ($NewStatus.status-ne'finished') { throw'Could not retrieve status of import - This job might still be running. Check the autopilot device list in 10 minutes for the latest status.' }
47
52
Write-LogMessage-headers $Request.Headers-API $APIName-tenant $($Request.body.TenantFilter.value) -message "Created Autopilot devices group. Group ID is $GroupName"-Sev 'Info'
0 commit comments