Skip to content

Commit

Permalink
Merge pull request #35 from PetriAsi/develop
Browse files Browse the repository at this point in the history
Added r_guardiansearch parameter
  • Loading branch information
PetriAsi authored Oct 29, 2023
2 parents ab7a0ed + ec0bd93 commit 2286c89
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions WilmaPSWorker/Public/Send-WPSWMessage.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2286c89

Please sign in to comment.