Download the attendance reports of a Town Hall event using PowerShell - MgVirtualEventTownhallSession error
Hi all,
I'm trying to download the attendance reports of a Town Hall event using PowerShell, because there's an issue with the interface as it only shows the 10 most recent log reports and there's no way to scroll back to the original one. Anyways, I was reding about some Graph APIs here:
My issue is that I'm getting a Status: "404 (NotFound) ErrorCode: NotFound" when I try to query for the attendance report session using any of these 2 below:
Get-MgVirtualEventTownhallSessionAttendanceReport -VirtualEventSessionId $THSessionID -VirtualEventTownhallId $virtualEventTHID
Get-MgBetaVirtualEventTownhallSessionAttendanceReport -VirtualEventSessionId $THSessionID -VirtualEventTownhallId $virtualEventTHID
The event session id ($THSessionID) I'm getting using either one of these below (I get the same Id and there's only one session)
Get-MgVirtualEventTownhallSession
Get-MgBetaVirtualEventTownhallSession
Also, here you can see how I'm getting that session Id and the error
What do you think?
Thanks,
Gabriel