Search This Blog

Thursday, January 28, 2016

Everything you needs to know on Powershell Lync RGS

http://www.skypeadmin.com/2014/08/01/draft-lync-interactive-response-group-creation-and-modification-via-powershell/

As you know RGS IVR GUI is limited only to 4 Options and 2 levels , if you want to overcome you need to use powershell. Well you can pre-create a skeleton in GUI and then add Option in PS. Something like this:


$workflow = Get-CsRgsWorkflow -Identity service:ApplicationServer:fepool.contoso.com/ea0c81cc-50df-4b8d-a488-8737f2200ed1

$MainMenu = Get-CsRgsQueue -Identity service:ApplicationServer:fepool.contoso.com -Name "Main Number Menu - forward"
$ActionA8 = New-CsRgsCallAction -Action TransferToQueue -QueueID $MainMenu.Identity        
$Answer8 = New-CsRgsAnswer -Action $ActionA8 -DtmfResponse 8


$workflow.DefaultAction.Question.AnswerList.Add($Answer8)

Set-CsRgsWorkflow $workflow

No comments: