@@ -10,7 +10,7 @@ Function Render-MultiPartFormFields
1010 if ($Field.Key -eq " fFile" )
1111 {
1212 $ReturnString += $Boundary + " `r`n "
13- $ReturnString += " Content-Disposition: form-data; name="" fFile"" ; filename="" staff_upload .txt""`r`n "
13+ $ReturnString += " Content-Disposition: form-data; name="" fFile"" ; filename="" upload .txt""`r`n "
1414 $ReturnString += " Content-Type: text/plain`r`n`r`n "
1515 $ReturnString += Get-Content $ ($Field.Value ) - Raw
1616 $ReturnString += " `r`n "
@@ -127,12 +127,12 @@ Function New-AttendanceCall
127127 [ValidateSet (" All" , " Student" , " Admin" , " Faculty" , " Staff" , " Other" )]
128128 [String ]
129129 $ContactType ,
130- [ValidateSet (" All" , " Student" , " Admin" , " Faculty" , " Staff" , " Other" , " None" )]
131130 [String ]
132131 $TemplateName ,
133132 [String ]
134133 $CallTime = " 07:30:00 PM" ,
135134 [String ]
135+ [ValidateSet (" HA" , " AK" , " PT" , " MT" , " CT" , " ET" , " AT" )]
136136 $TimeZone = " ET" ,
137137 [String ]
138138 $AttCode ,
@@ -144,17 +144,12 @@ Function New-AttendanceCall
144144
145145 $UploadFields = @ {}
146146 $UploadFields [' fNTIUser' ] = $UserName
147- $UploadFields [' fNTIPassEnc ' ] = $Password
147+ $UploadFields [' fNTIPass ' ] = $Password
148148 $UploadFields [' fContactType' ] = $ContactType
149- if ( $RefreshType -ne " None" )
150- {
151- $UploadFields [' fRefreshType' ] = $RefreshType
152- }
153149 $UploadFields [' fMessageTitle' ] = $TemplateName
154150 $UploadFields [' fNTITime' ] = $CallTime
155151 $UploadFields [' fNTITimeZone' ] = $TimeZone
156- $UploadFields [' fFile' ] = $UploadFilePath
157- $UploadFields [' fSubmit' ] = 1
152+ $UploadFields [' fFile' ] = $AttendanceFile
158153
159154 $PostBody = $ (Render- MultiPartFormFields - FieldsHash $UploadFields - Boundary $Boundary )
160155
0 commit comments