Skip to content

Commit 1fc605d

Browse files
authored
Update New-CsTeamsUnassignedNumberTreatment.md
1 parent 6405c04 commit 1fc605d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

teams/teams-ps/teams/New-CsTeamsUnassignedNumberTreatment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ where the audio file MainAnnouncement.wav will be played to the caller.
5151

5252
### Example 3
5353
```powershell
54-
$UserObjectId = (Get-CsOnlineUser -Identity [email protected]).Identity
54+
$UserObjectId = (Get-CsOnlineUser -Identity [email protected]).ObjectId
5555
New-CsTeamsUnassignedNumberTreatment -Identity TR2 -Pattern "^\+15552224444$" -TargetType User -Target $UserObjectId -TreatmentPriority 3
5656
```
5757
This example creates a treatment that will route all calls to the number +1 (555) 222-4444 to the user [email protected].

0 commit comments

Comments
 (0)