Forum Discussion
dafo43
Jun 13, 2020Copper Contributor
Graph API and Powershell
I'm looking to use the Graph API to get some Teams stats using PowerShell - https://docs.microsoft.com/en-us/graph/api/reportroot-getteamsuseractivitycounts?view=graph-rest-1.0 . The content seems to...
- Jun 15, 2020
Hidafo43
Report only provides the Teams activities by activity type, we can't extract TeamsName from this
Please use below lines to your script to export the data into csv
$resultarray = ConvertFrom-Csv -InputObject $result
$resultarray | Export-Csv "C:\output.csv" -NoTypeInformation
Geetha63
Jun 15, 2020Copper Contributor
Hidafo43
Report only provides the Teams activities by activity type, we can't extract TeamsName from this
Please use below lines to your script to export the data into csv
$resultarray = ConvertFrom-Csv -InputObject $result
$resultarray | Export-Csv "C:\output.csv" -NoTypeInformation
- dafo43Jun 15, 2020Copper Contributor
Thanks, I can see the column names with the exported CSV, so that's enough to work with.