Auto Attendant add Menu to Call Flow
Hello
I have done a script that creates menu for the call flow
#Connect to Teams
Connect-MicrosoftTeams
#Define Auto Attendant & Call Queue
$attendantName = “AA”
$callQueueName = “QQ”
#Get ID from Auto Attendant & Call Queue
$autoAttendant = Get-CsAutoAttendant -NameFilter $attendantName | Where-Object Name -eq $attendantName
#Define Callable Entity Auto Attendant
$callableEntity1 = New-CsAutoAttendantCallableEntity -Identity “tel:+411234567” -Type ExternalPSTN
#Define Menu Option Tone 1 – Call Phone
$menuOption = New-CsAutoAttendantMenuOption -Action TransferCallToTarget -DtmfResponse Tone1 -CallTarget $callableEntity1
$menuPrompt = New-CsAutoAttendantPrompt -TextToSpeechPrompt “To reach our sales department, please press 1,2,3,4, or say operator to be redirected to our company switchboard”
$menu = New-CsAutoAttendantMenu -Name “Default Menu” -MenuOptions @($menuOption) -Prompts @($menuPrompt)
$callFlow = New-CsAutoAttendantCallFlow -Name “Default Call Flow” -Menu $menu
$autoAttendant.DefaultCallFlow = $callFlow
Set-CsAutoAttendant -Instance $autoAttendant
#Define Callable Entity Call Queue
$callQueueID = (Find-CsOnlineApplicationInstance -SearchQuery $callQueueName) | Select-Object -Property Id
$callableEntity3 = New-CsAutoAttendantCallableEntity -Identity $callQueueID.id -Type ApplicationEndpoint
#Define Menu Option Tone 3 – Call Call Queue
$menuOption = New-CsAutoAttendantMenuOption -Action TransferCallToTarget -DtmfResponse Tone3 -CallTarget $callableEntity3
$menu = New-CsAutoAttendantMenu -Name “Default Menu” -MenuOptions @($menuOption) -Prompts @($menuPrompt)
$callFlow = New-CsAutoAttendantCallFlow -Name “Default Call Flow” -Menu $menu
$autoAttendant.DefaultCallFlow = $callFlow
Set-CsAutoAttendant -Instance $autoAttendant
Now the last command replaces the menu 1 (tone1).
How can I add multiple keys (tones) to be able to choose more than one key
Means merge the commands
Regards
JFM_12
Hello I have done a script that creates menu for the call flow #Connect to Teams
Connect-MicrosoftTeams
#Define Auto Attendant & Call Queue
$attendantName = “AA”
$callQueueName = “QQ”
#Get ID from Auto Attendant & Call Queue
$autoAttendant = Get-CsAutoAttendant -NameFilter $attendantName | Where-Object Name -eq $attendantName
#Define Callable Entity Auto Attendant
$callableEntity1 = New-CsAutoAttendantCallableEntity -Identity “tel:+411234567” -Type ExternalPSTN
#Define Menu Option Tone 1 – Call Phone
$menuOption = New-CsAutoAttendantMenuOption -Action TransferCallToTarget -DtmfResponse Tone1 -CallTarget $callableEntity1
$menuPrompt = New-CsAutoAttendantPrompt -TextToSpeechPrompt “To reach our sales department, please press 1,2,3,4, or say operator to be redirected to our company switchboard”
$menu = New-CsAutoAttendantMenu -Name “Default Menu” -MenuOptions @($menuOption) -Prompts @($menuPrompt)
$callFlow = New-CsAutoAttendantCallFlow -Name “Default Call Flow” -Menu $menu
$autoAttendant.DefaultCallFlow = $callFlow
Set-CsAutoAttendant -Instance $autoAttendant
#Define Callable Entity Call Queue
$callQueueID = (Find-CsOnlineApplicationInstance -SearchQuery $callQueueName) | Select-Object -Property Id
$callableEntity3 = New-CsAutoAttendantCallableEntity -Identity $callQueueID.id -Type ApplicationEndpoint
#Define Menu Option Tone 3 – Call Call Queue
$menuOption = New-CsAutoAttendantMenuOption -Action TransferCallToTarget -DtmfResponse Tone3 -CallTarget $callableEntity3
$menu = New-CsAutoAttendantMenu -Name “Default Menu” -MenuOptions @($menuOption) -Prompts @($menuPrompt)
$callFlow = New-CsAutoAttendantCallFlow -Name “Default Call Flow” -Menu $menu
$autoAttendant.DefaultCallFlow = $callFlow
Set-CsAutoAttendant -Instance $autoAttendant Now the last command replaces the menu 1 (tone1). How can I add multiple keys (tones) to be able to choose more than one keyMeans merge the commands RegardsJFM_12 Read More