Skip to content

Commit cdfc01d

Browse files
authored
Merge pull request MicrosoftDocs#4740 from get-itips/patch-130
Added DirectorySearchMethod
2 parents fc48c69 + daa5854 commit cdfc01d

File tree

1 file changed

+27
-5
lines changed

1 file changed

+27
-5
lines changed

skype/skype-ps/skype/New-CsAutoAttendantMenu.md

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The New-CsAutoAttendantMenu cmdlet creates a new menu.
1818
## SYNTAX
1919

2020
```
21-
New-CsAutoAttendantMenu -Name <String> [-MenuOptions <List>] [-Prompts <List>] [-EnableDialByName] [-Tenant <Guid>] [<CommonParameters>]
21+
New-CsAutoAttendantMenu -Name <String> [-MenuOptions <List>] [-Prompts <List>] [-EnableDialByName] [-Tenant <Guid>] [-DirectorySearchMethod] [<CommonParameters>]
2222
```
2323

2424
## DESCRIPTION
@@ -30,19 +30,19 @@ The New-CsAutoAttendantMenu cmdlet creates a new menu for the Auto Attendant (AA
3030
### -------------------------- Example 1 --------------------------
3131
```
3232
$menuPrompt = New-CsAutoAttendantPrompt -TextToSpeechPrompt "To reach your party by name, enter it now, followed by the pound sign."
33-
$menu = New-CsAutoAttendantMenu -Name "Default Menu" -Prompts @($menuPrompt) -EnableDialByName
33+
$menu = New-CsAutoAttendantMenu -Name "Default Menu" -Prompts @($menuPrompt) -EnableDialByName -DirectorySearchMethod ByExtension
3434
```
3535

36-
This example creates a new menu that allows the caller to reach a target by name.
36+
This example creates a new menu that allows the caller to reach a target by name, and also defines the Directory Search Method to Dial By Extension.
3737

3838
### -------------------------- Example 2 --------------------------
3939
```
4040
$menuOptionZero = New-CsAutoAttendantMenuOption -Action TransferCallToOperator -DtmfResponse Tone0
4141
$menuPrompt = New-CsAutoAttendantPrompt -TextToSpeechPrompt "To reach your party by name, enter it now, followed by the pound sign. For operator, press zero."
42-
$menu = New-CsAutoAttendantMenu -Name "Default Menu" -Prompts @($menuPrompt) -MenuOptions @($menuOptionZero) -EnableDialByName
42+
$menu = New-CsAutoAttendantMenu -Name "Default Menu" -Prompts @($menuPrompt) -MenuOptions @($menuOptionZero) -EnableDialByName -DirectorySearchMethod ByName
4343
```
4444

45-
This example creates a new menu that allows the caller to reach a target by name or the operator by pressing the 0 key.
45+
This example creates a new menu that allows the caller to reach a target by name or the operator by pressing the 0 key, and also defines the Directory Search Method to Dial By Name.
4646

4747

4848
## PARAMETERS
@@ -118,6 +118,28 @@ Accept pipeline input: False
118118
Accept wildcard characters: False
119119
```
120120
121+
### -DirectorySearchMethod
122+
The DirectorySearchMethod parameter lets you define the type of Directory Search Method for the Auto Attendant menu, for more information, see [Set up a Cloud auto attendant](https://docs.microsoft.com/MicrosoftTeams/create-a-phone-system-auto-attendant?WT.mc_id=TeamsAdminCenterCSH)
123+
124+
Possible values are
125+
126+
- None
127+
- ByName
128+
- ByExtension
129+
130+
```yaml
131+
Type: Microsoft.Rtc.Management.Hosted.OAA.Models.DirectorySearchMethod
132+
Parameter Sets: (All)
133+
Aliases:
134+
Applicable: Skype for Business Online
135+
136+
Required: True
137+
Position: Named
138+
Default value: None
139+
Accept pipeline input: False
140+
Accept wildcard characters: False
141+
```
142+
121143
### -Tenant
122144
123145
```yaml

0 commit comments

Comments
 (0)