-
Notifications
You must be signed in to change notification settings - Fork 192
Microsoft.Graph.Reports - Get-MgReportTeamUserActivityCount #407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is a known issue where the metadata describes this as JSON and the response is csv. |
@MIchaelMainer Ok good to know, when will it be solved? |
We don't have this scheduled yet on our side, and I'm unaware what the story is on the server side for this API set. This scenario requires the use of Invoke-GraphRequest for now. |
Also adding that the cmdlets in Microsoft.Graph.Reports fail when the file specified by -OutFile doesn't already exist. |
I was able to repro this issue:
|
@JohanssonMarkus
You can substitute the
|
The OpenAPI document currently represents the content-type of this response as CurrentlyGets converted to this in OpenAPI: ExpectedFor the cmldet to function as described in MS Graph docs, we need to ensure that the response is describes as shown below: cc\ @ddyett , @darrelmiller, @mairissi: Should we address this in the metadata or let DevX API handle it. |
This is being tracked here https://github.com/microsoftgraph/microsoft-graph-devx-api/issues/552 and will be fixed via XSLT transform. |
This is still happening with Module "Microsoft.Graph" at Version "1.7.0", please fix |
From what we can tell, the Microsoft.Graph.Reports module is comprehensively broken because of this issue. It's been outstanding for a while. If it can't be fixed on the metadata side, is there any thought to having additional api metadata transforms applied prior to the sdk generation? That would at least insulate the sdk from inheriting upstream problems that can't be fixed for years at a time.... |
Uh oh!
There was an error while loading. Please reload this page.
Get-MgReportTeamUserActivityCount -Period "D7" Give an error
PS H:> Get-MgReportTeamUserActivityCount -Period "D7"
Get-MgReportTeamUserActivityCount : Expected '{' or '['. Was String: Report.
At line:1 char:1
AB#7395
The text was updated successfully, but these errors were encountered: