question

ez-Jurgen avatar image
0 Votes"
ez-Jurgen asked SharonZhao-MSFT commented

Teams Voice: Powershell: New-CsAutoAttendantCallFlow redirect to CQ (No Menu or disconnect)

Dear Guru's,

Trying to create an Autoattendant with powershell but one that uses a call flow that redirects to a Call Queue (voice App) instead of one or more menu options, or disconnect

In Teams Admin Portal it looks like this:

77486-image-5.png

Put in powerhell I think it should be in the New-CsAutoAttendantCallFlow cmdlet but I can only use a variable for the name, greeting and menu. no redirect or disconnect as in the portal.

The code I am using is this to get the default call flow in an AA to send a call to a CQ while not in After Hours, but am missing the step how to get the call flow to redirect to the CSAAcallableEntity... Might need something in between but have no clue how and what.

     # Call Flow
     $greetingPrompt = New-CsAutoAttendantPrompt -TextToSpeechPrompt "Welcome to Contoso!"
     $CaptainsRoomCQ = (Get-CsOnlineUser -Identity "TestCAllQueueRA@ez.be").ObjectId # one of the application instances associated to the Call Queue
     $CaptainsRoomCE = New-CsAutoAttendantCallableEntity -Identity $CaptainsRoomCQ -Type applicationendpoint
     $defaultCallFlow = New-CsAutoAttendantCallFlow -Name "Default call flow" -Greetings @($greetingPrompt) **-Menu $defaultMenu # Not menu but REDIRECT Call to a CallQueue**
     # Create a new AA with the default call flow set to the Test Call Queue
     $aa = New-CsAutoAttendant -Name "Test auto attendant 5" -DefaultCallFlow $defaultCallFlow -CallFlows @($afterHoursCallFlowNOTSHOWNHERE) - 
     CallHandlingAssociations @($afterHoursCallHandlingAssociationNOTSHOWNHERE) -LanguageId "en-US" -TimeZoneId "UTC"



office-teams-windows-itpro
image-5.png (177.6 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@ez-Jurgen,
This question is in Teams scope. I will remove office-skype-business-online-itpro tag. Thanks for your understanding.

0 Votes 0 ·

1 Answer

SharonZhao-MSFT avatar image
0 Votes"
SharonZhao-MSFT answered SharonZhao-MSFT commented

@ez-Jurgen,

It seems no direct way to create a new call flow with no menu. The structure of New-CsAutoAttendantCallFlow indicates this.
77634-image.png

The following script could be the next best thing. It shows how to reference a Call Queue as a menu option.
77662-image.png


If the response is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



image.png (5.8 KiB)
image.png (146.9 KiB)
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ooh that is sad.

I need to create a bunch of them.

the CQ as menu option is not a workable solution, so yours truly will have to make them all by hand...

So strange as I thought in the backend of skype everything was powershell anyway, no?

Please vote for my idea on uservoice 42916434-teams-voice-powershell-new-csautoattendantcallfl


0 Votes 0 ·

@ez-Jurgen

I voted it.

Microsoft will always focus on customer’s feedback and experience. Some new features would be added to the services based on customers' feedback in the future, and your good ideas will be very helpful for them to improve the service.

Your time, understanding and cooperation will be highly appreciated.

0 Votes 0 ·

@ez-Jurgen
If you have any further question on this topic, please feel free to discuss with us here.
Have a nice day!

0 Votes 0 ·