Private/ArgumentCompleter/Get-OrbitAcSbCsAutoAttendantSupportedLanguage.ps1


function Get-OrbitAcSbCsAutoAttendantSupportedLanguage {
  param ( $commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameters )
  $null = Assert-MicrosoftTeamsConnection
  $Values = (Get-CsAutoAttendantSupportedLanguage -ErrorAction SilentlyContinue | Select-Object Id).Id
  $Values | Where-Object { $_ -like "*$WordToComplete*" } | ForEach-Object { $_ }
}
# [ArgumentCompleter({ Get-OrbitAcSbCsAutoAttendantSupportedLanguage @args })]
Register-ArgumentCompleter -CommandName New-TeamsCallQueue -ParameterName LanguageId -ScriptBlock { Get-OrbitAcSbCsAutoAttendantSupportedLanguage @args }
Register-ArgumentCompleter -CommandName Set-TeamsCallQueue -ParameterName LanguageId -ScriptBlock { Get-OrbitAcSbCsAutoAttendantSupportedLanguage @args }
Register-ArgumentCompleter -CommandName New-TeamsCallQueueTrigger -ParameterName LanguageId -ScriptBlock { Get-OrbitAcSbCsAutoAttendantSupportedLanguage @args }
Register-ArgumentCompleter -CommandName Set-TeamsCallQueueTrigger -ParameterName LanguageId -ScriptBlock { Get-OrbitAcSbCsAutoAttendantSupportedLanguage @args }
Register-ArgumentCompleter -CommandName New-TeamsAutoAttendant -ParameterName LanguageId -ScriptBlock { Get-OrbitAcSbCsAutoAttendantSupportedLanguage @args }
Register-ArgumentCompleter -CommandName Update-TeamsAutoAttendant -ParameterName LanguageId -ScriptBlock { Get-OrbitAcSbCsAutoAttendantSupportedLanguage @args }