diff --git a/WilmaPSWorker/Public/Send-WPSWMessage.ps1 b/WilmaPSWorker/Public/Send-WPSWMessage.ps1 index 6405904..a1383e2 100644 --- a/WilmaPSWorker/Public/Send-WPSWMessage.ps1 +++ b/WilmaPSWorker/Public/Send-WPSWMessage.ps1 @@ -100,10 +100,15 @@ function Send-WPSWMessage (){ [int[]] $r_groupguardian, - #combination of Search ID and school id + #Student recipients. combination of Search ID and school id as SearchID+_+SchoolID [Parameter(Mandatory=$false,ParameterSetName='NewMessage')] [string] - $r_studentsearch + $r_studentsearch, + + #Guardian recipients. combination of Search ID and school id as SearchID+_+SchoolID + [Parameter(Mandatory=$false,ParameterSetName='NewMessage')] + [string] + $r_guardiansearch ) begin{ @@ -146,7 +151,7 @@ function Send-WPSWMessage (){ CollatedReplies =$CollatedReplies } - $recipients= ('r_student', 'r_guardian','r_teacher','r_personnel','r_instructor','r_class','r_classguardian','r_group','r_groupguardian', 'r_studentsearch') + $recipients= ('r_student', 'r_guardian','r_teacher','r_personnel','r_instructor','r_class','r_classguardian','r_group','r_groupguardian', 'r_studentsearch', 'r_guardiansearch') foreach ( $r in $recipients) { if((Get-Variable $r).Value) { $Body.$($r) = (Get-Variable $r).Value