Skip to content

Commit 6a5b392

Browse files
authored
Update Push-ExecScheduledCommand.ps1
- Correctly pass ticket ID through now maybe plz?
1 parent 7502fb0 commit 6a5b392

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-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
@@ -329,7 +329,7 @@ function Push-ExecScheduledCommand {
329329
Write-Information 'Scheduler: Sending the results to the target.'
330330
Write-Information "The content of results is: $Results"
331331
switch -wildcard ($task.PostExecution) {
332-
'*psa*' { Send-CIPPAlert -Type 'psa' -Title $title -HTMLContent $HTML -TenantFilter $Tenant -PSATicketId $Item.Parameters.psaticketid }
332+
'*psa*' { Send-CIPPAlert -Type 'psa' -Title $title -HTMLContent $HTML -TenantFilter $Tenant -PSATicketId $task.Parameters.psaticketid }
333333
'*email*' { Send-CIPPAlert -Type 'email' -Title $title -HTMLContent $HTML -TenantFilter $Tenant }
334334
'*webhook*' {
335335
$Webhook = [PSCustomObject]@{

0 commit comments

Comments
 (0)