Forum Discussion

JFM_12's avatar
JFM_12
Iron Contributor
Aug 22, 2024
Solved

Create powershelle for MenuOptions

Hello Do you have a powershell script to create in AutoAttendant in CallFlow a greeting message and 3 menu options - 2 with a number - 1 with redirection to CQ Regards JFM_12
  • JFM_12's avatar
    JFM_12
    Aug 26, 2024

    Hello 
    I managed to create a script but it keeps asking for a greeting and also the country code is not accepted although it works.

     

    $attendantName = "x"
    $autoAttendant = Get-CsAutoAttendant -NameFilter $attendantName | Where-Object Name -eq $attendantName
    $callableEntity1 = New-CsAutoAttendantCallableEntity -Identity "tel:+4112345" -Type ExternalPSTN
    $menuOption = New-CsAutoAttendantMenuOption -Action TransferCallToTarget -DtmfResponse Tone1 -CallTarget $callableEntity1
    $menuPrompt = New-CsAutoAttendantPrompt -TextToSpeechPrompt "To reach our sales department, please press 1, or say operator to be redirected to our company switchboard"
    $menu = New-CsAutoAttendantMenu -Name "Default Menu" -MenuOptions @($menuOption) -Prompts @($menuPrompt)
    $greeting = New-CsAutoAttendantPrompt -ActiveType None -TextToSpeechPrompt 
    $callFlow = New-CsAutoAttendantCallFlow -Name "Default Call Flow" -Menu $menu -Greetings $greeting
    $autoAttendant.DefaultCallFlow = $callFlow
    Set-CsAutoAttendant -Instance $autoAttendant

     

     

    I was able to resolve the problems.

     

    Regards
    JFM_12

Resources