Skip to content

Commit 14f242a

Browse files
committed
extra ref message
1 parent a7c767f commit 14f242a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Push-ExecScheduledCommand.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ function Push-ExecScheduledCommand {
280280
$HTML += "<div style='background-color: transparent; border-left: 4px solid #007bff; padding: 15px; margin: 15px 0;'><h4 style='margin-top: 0; color: #007bff;'>Alert Information</h4><p style='margin-bottom: 0;'>$($task.AlertComment)</p></div>"
281281
}
282282

283-
$title = "$TaskType - $Tenant - $($task.Name)$(if ($task.Reference) { " - $($task.Reference)" })"
283+
$title = "$TaskType - $Tenant - $($task.Name)$(if ($task.Reference) { " - Reference: $($task.Reference)" })"
284284
Write-Information 'Scheduler: Sending the results to the target.'
285285
Write-Information "The content of results is: $Results"
286286
switch -wildcard ($task.PostExecution) {

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users/Invoke-ExecOffboardUser.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ function Invoke-ExecOffboardUser {
3535
Email = [bool]$Request.Body.PostExecution.email
3636
PSA = [bool]$Request.Body.PostExecution.psa
3737
}
38+
Reference = $Request.Body.reference
3839
}
3940
Add-CIPPScheduledTask -Task $taskObject -hidden $false -Headers $Headers
4041
} else {

0 commit comments

Comments
 (0)