Open utterances-bot opened 3 years ago
Hi Robert,
Absolutely love this post, and it's incredibly useful. I'm wondering if you had any examples of where you may have set the Out of Hours workflow too please, as I'm facing some challenges when trying to get that included in this script?
Many thanks in advance,
Sean
@Calsword - Hi Sean,
I'm glad that you enjoy the post. For the out of hours workflow I use the script as below. My workflow has a dedicated AA to which all out of hours calls are being redirected and I specify it in $attUnavailableId
:
# After hours call flow
# Prompt to be specified here
$afterHoursGreetingPrompt = New-CsAutoAttendantPrompt -ActiveType 'None' -TextToSpeechPrompt "This is default prompt text"
$unavailableEntity = New-CsAutoAttendantCallableEntity -Identity $attUnavailableId -Type ApplicationEndpoint
$automaticMenuOption = New-CsAutoAttendantMenuOption -Action TransferCallToTarget -DtmfResponse Automatic -CallTarget $unavailableEntity
$afterHoursMenu=New-CsAutoAttendantMenu -Name "$aaName OOH menu" -MenuOptions @($automaticMenuOption)
$afterHoursCallFlow = New-CsAutoAttendantCallFlow -Name "$aaName OOH flow" -Greetings @($afterHoursGreetingPrompt) -Menu $afterHoursMenu
# After hours schedule
$timerange = New-CsOnlineTimeRange -Start 00:00 -End 1.00:00
# $timerange = New-CsOnlineTimeRange -Start 08:00 -End 18:00
$afterHoursSchedule = New-CsOnlineSchedule -Name "$aaName OOH Schedule" -WeeklyRecurrentSchedule -Complement -MondayHours @($timerange) -TuesdayHours @($timerange) -WednesdayHours @($timerange) -ThursdayHours @($timerange) -FridayHours @($timerange) #-SaturdayHours @($timerange) -SundayHours @($timerange)
# After hours association
$afterHoursCallHandlingAssociation = New-CsAutoAttendantCallHandlingAssociation -Type AfterHours -ScheduleId $afterHoursSchedule.Id -CallFlowId $afterHoursCallFlow.Id
@rodby perfect thank you, I look forward to giving this a try next week. I was hoping to do exactly the same and use a dedicated out of hours AA
Hi Robert,
can you please advise how to make bulk changes to AA with business hours using PowerShell ? if you can please guide that would be great.
Regards
Josh
Hi @HEMANG1919 - please check the script I pasted for Calsword. If you wrap it into a loop, you should be able to change business hours workflow in bulk.
Hello,
I tried to put this script together, it just failed with errors. Can you send me the complete script together and How would you use this to create multiple call queues and auto attendants?
Hi @realpro678! Thanks for your comment.
Unfortunately, I cannot send you the full script. It's written for the environment I used and it wouldn't work for you out of the box. If you manage to isolate the issue and send me some details about the error, I can have a look if I'm able to reproduce it.
For creating multiple CQ/AA - import data from any source (CSV, Excel) and iterate through it. That should do the work!
Absolute F**g Genius. What a piece of work
Rob, Thank you so much for this. I was assigned a task to create 95 Call Queues and Auto Attendants. I searched online, and reached out to people. Finally I was about to do it manually and decided to search online one more time and voila - you have no idea how much you helped me. Thank you!! Continue sharing the knowledge. I am going to share these to others including Pluralsight Teams instructors whom I reached out for Script and told me to do it manually :-)
Thank you!!
Thanks, @deepkverma!
Thanks, @ladygew! I really appreciate your sending me such a comment. It really helps when I struggle to find motivation to write new articles 😍
Thank you Rob Now I am struggling with changing the business hours for Auto Attendants in bulk. After moving these auto attendants from Shoretel we were going to change their business hours for testing and changing it back. Do you have any scripts for this please? I didn't see this under https://robdy.io/manage-auto-attendant-general/
Great Job Rob, I worked with ladygew on some and, I agree - Excellent examples and enough information to get the ball rolling. Real Life Saver!!! - While I am pretty good with PowerShell , I was able to take the examples and move them around to meet our requirements.
Some of the areas we can't seem to find are dealing with business hours for the auto-attendant - I'm still searching for an example and will work with what we can find. I cannot say enough about how much time you have saved us as well as lowering stress levels - really great, ty.. ;)
Hello @robdy - Is there a way to find that this particular call queue is being called in which Auto Attendant, via powershell
Automating Call Queue and Auto Attendant onboarding | Robert Dyjas
One of the most complex activities for Teams admins is creating call queues and auto attendants. You don't create them every day, but when you do, you might need to create a lot of them at once.
https://robdy.io/automating-call-queues-and-auto-attendant-onboarding/