Forum Discussion
Powershell to export AutoAttendant Default Call Flow
Hello
I have written a Script that configures the Default Call Flow.
Would like to export before in that same script the existing configuration
The part of the script is
$autoAttendant_CallFlow = WR_Log_Command -Command { get-CsAutoAttendant -NameFilter $row.AutoAttendantName } -Type "Get AutoAttenand Name"
Write-Host "==> This is the existing autoAttendant_CallFlow $($autoAttendant_CallFlow.DefaultCallFlow.Menu) " -ForegroundColor Magenta -BackgroundColor Black
But I am getting these results
Microsoft.Rtc.Management.Hosted.OAA.Models.AutoAttendant
or
Account Environment Tenant TenantId
------- ----------- ------ --------
email-address AzureCloud "Tennant" "Tennant ID"
Do you have an Idea why it is like that
Thank you for your help
JFM_12
JFM_12 - Engineering team has looked into this and said that it's difficult to say without the whole script, but maybe the 2nd result is coming when the session is expired. They can ensure Connect-MicrosoftTeams is done and valid before calling the cmdlets. Could you please confirm that session is not expired. If you are still facing this issue, please share the whole script. You can share it at microsoftteamsdev@microsoft.com if you don't want to post it on public forum.
6 Replies
- Meghana-MSFTBronze Contributor
JFM_12 - For question related to Microsoft PowerShell, please raise it on Microsoft PowerShell Community
- JFM_12Iron ContributorHi Meghana-MSFT
Thank you but this is related to Teams and scripting for Teams it is not a pure Powershell Issue.
Regards
JFM_12- Meghana-MSFTBronze ContributorWe will check this and get back to you.