Forum Discussion

JFM_12's avatar
JFM_12
Iron Contributor
Sep 13, 2024
Solved

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

  • Meghana-MSFT's avatar
    Meghana-MSFT
    Sep 18, 2024

    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.

Resources