New-CsOrganizationalAutoAttendantCallHandlingAssociation

 

Topic Last Modified: 2017-02-24

Use the New-CsOrganizationalAutoAttendantCallHandlingAssociation cmdlet to create a new call handling association.

New-CsOrganizationalAutoAttendantCallHandlingAssociation -CallFlowId <String> -ScheduleId <String> -Type <AfterHours>[-Disable <SwitchParameter>] 

This example creates a new call handling association.

$tr = New-CsOnlineTimeRange -Start 09:00 -End 17:00
$schedule = New-CsOnlineSchedule -Name "Business Hours" -WeeklyRecurrentSchedule -MondayHours @($tr)
$scheduleId = $schedule.Id

$menuPrompt = New-CsOrganizationalAutoAttendantPrompt -TextToSpeechPrompt "To reach your party by name, enter it now, followed by the pound sign."
$menu = New-CsOrganizationalAutoAttendantMenu -Name "Default Menu" -Prompts $menuPrompt -EnableDialByName 
$callFlow = New-CsOrganizationalAutoAttendantCallFlow -Name "Default Call Flow" -Menu $menu
$callFlowId = $callFlow.Id
$callHandlingAssociation = New-CsOrganizationalAutoAttendantCallHandlingAssociation -Type AfterHours -ScheduleId $scheduleId -CallFlowId $callFlowId

This example creates a disabled call handling association.

$tr = New-CsOnlineTimeRange -Start 09:00 -End 17:00
$schedule = New-CsOnlineSchedule -Name "Business Hours" -WeeklyRecurrentSchedule -MondayHours @($tr)
$scheduleId = $schedule.Id

$menuPrompt = New-CsOrganizationalAutoAttendantPrompt -TextToSpeechPrompt "To reach your party by name, enter it now, followed by the pound sign."
$menu = New-CsOrganizationalAutoAttendantMenu -Name "Default Menu" -Prompts $menuPrompt -EnableDialByName 
$callFlow = New-CsOrganizationalAutoAttendantCallFlow -Name "Default Call Flow" -Menu $menu
$callFlowId = $callFlow.Id
$disabledCallHandlingAssociation = New-CsOrganizationalAutoAttendantCallHandlingAssociation -Type AfterHours -ScheduleId $scheduleId -CallFlowId $callFlowId -Disable

The New-CsOrganizationalAutoAttendantCallHandlingAssociation cmdlet creates a new call handling association to be used with the Organizational Auto Attendant (OAA) service. The OAA service uses call handling associations to determine which call flow to execute when a specific schedule is in effect.

 

Parameter Required Type Description

CallFlowId

Required

System.String

The CallFlowId parameter represents the call flow to be associated with the schedule.

You can create a call flow by using the New-CsOrganizationalAutoAttendantCallFlow cmdlet.

ScheduleId

Required

System.String

The ScheduleId parameter represents the schedule to be associated with the call flow.

You can create a schedule by using the New-CsOnlineSchedule cmdlet

Type

Required

Microsoft.Rtc.Management.Hosted.OAA.Models.CallHandlingAssociationType

The Type parameter represents the type of the call handling association. Currently, only AfterHours is supported.

Disable

Optional

System.Management.Automation.SwitchParameter

The Disable parameter, if set, establishes that the call handling association is created as disabled.

The New-CsOrganizationalAutoAttendantCallHandlingAssociation cmdlet creates new instances of the Microsoft.Rtc.Management.OAA.Models.CallHandlingAssociation object.

 
Show: