You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Change retrunType for M365 report functions to Edm.Steam #79
The converted OpenAPI document currently represents response type of most report functions as application/json instead of application/octet-stream. To solve this, we need to ensure that response types of functions bound to reportRoot are accurately represented in the converted OpenAPI. Without this, code generators won't be able to know how to properly handle responses.
Example
Currently
This CSDL with the wrong return type:
Gets converted to this in OpenAPI:
Expected
For reports to function as described in MS Graph docs, we need to ensure that they are described as shown below:
Darrel (@darrelmiller), I totally missed this. Yes, having the returnType as Edm.Steam will fix this. We should also add $format query parameter to all M365 reports.
I'll transfer the issue to the metadata repo since this work will involve XSLT transform.
Also looking for an update on this. As far as we can tell, the entire Microsoft.Graph.Reports powershell sdk module is irretrievably broken until this is fixed.
John Dennis (@silijon) agree it would be great to see this fixed until then you may use this workaround with Peter provided me.
As it allows you to still use Graph Powershell und simply move forward as soon as the issue is fixed
Activity
darrelmiller commentedon May 26, 2021
Peter Ombwa (@peombwa) If the returnType was Edm.Stream, would that fix our issues?
peombwa commentedon Jul 13, 2021
Darrel (@darrelmiller), I totally missed this. Yes, having the returnType as
Edm.Steamwill fix this. We should also add$formatquery parameter to all M365 reports.I'll transfer the issue to the metadata repo since this work will involve XSLT transform.
[-]Correct Content-Type For Reports[/-][+]Change retrunType for M365 report functions to Edm.Steam[/+]weyCC81 commentedon Oct 6, 2021
Peter Ombwa (@peombwa) Is there an update on this?
joshtransient commentedon Dec 9, 2021
Any updates to this yet?
silijon commentedon Feb 10, 2022
Also looking for an update on this. As far as we can tell, the entire Microsoft.Graph.Reports powershell sdk module is irretrievably broken until this is fixed.
DanijelkMSFT commentedon Mar 10, 2022
John Dennis (@silijon) agree it would be great to see this fixed until then you may use this workaround with Peter provided me.
As it allows you to still use Graph Powershell und simply move forward as soon as the issue is fixed
Invoke-MgGraphRequest -Uri "https://graph.microsoft.com/beta/reports/getM365AppUserDetail(period='D7')/content" -OutputFilePath test.csvirvinesunday commentedon Oct 19, 2022
Resolved with #213