Skip to content

Commit 695c0e5

Browse files
authored
Merge pull request MicrosoftDocs#6738 from get-itips/patch-272
Fix example 3
2 parents ebc3d5c + c2d342e commit 695c0e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

skype/skype-ps/skype/Set-CsAutoAttendant.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ $autoAttendant.CallHandlingAssociations
9494
# CallFlowId : e7dd255b-ee20-57f0-8a2b-fc403321e284
9595
# Enabled : True
9696
97-
$autoAttendant.CallHandlingAssociations = $autoAttendant.CallHandlingAssociations | Where-Object {$_.ScheduleId -ne "578745b2-1f94-4a38-844c-6bf6996463ee"}
97+
$autoAttendant.CallHandlingAssociations.Remove(($autoAttendant.CallHandlingAssociations | where-object {$_.ScheduleId -eq "578745b2-1f94-4a38-844c-6bf6996463ee"}))
9898
9999
$autoAttendant.CallFlows
100100
@@ -108,7 +108,7 @@ $autoAttendant.CallFlows
108108
# Greetings :
109109
# Menu : Christmas Menu
110110
111-
$autoAttendant.CallFlows = $autoAttendant.CallFlows | Where-Object {$_.Id -ne "8ab460f0-770c-4d30-a2ff-a6469718844f"}
111+
$autoAttendant.CallFlows.Remove(($autoAttendant.CallFlows | where-object {$_.Id -eq "8ab460f0-770c-4d30-a2ff-a6469718844f"}))
112112
113113
Set-CsAutoAttendant -Instance $autoAttendant
114114
```

0 commit comments

Comments
 (0)