Skip to content

Change retrunType for M365 report functions to Edm.Steam #79

Closed

Description

@peombwa

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:
image
image

Gets converted to this in OpenAPI:
image

Expected

For reports to function as described in MS Graph docs, we need to ensure that they are described as shown below:
image

Related to microsoftgraph/msgraph-sdk-powershell#407

AB#9223

Activity

  1. darrelmiller commented on May 26, 2021

    @darrelmiller
    Contributor

    Peter Ombwa (@peombwa) If the returnType was Edm.Stream, would that fix our issues?

  2. peombwa commented on Jul 13, 2021

    @peombwa
    MemberAuthor

    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.

  3. transferred this issue fromon Jul 13, 2021
  4. changed the title [-]Correct Content-Type For Reports[/-] [+]Change retrunType for M365 report functions to Edm.Steam[/+] on Jul 13, 2021
  5. weyCC81 commented on Oct 6, 2021

    @weyCC81

    Peter Ombwa (@peombwa) Is there an update on this?

  6. joshtransient commented on Dec 9, 2021

    @joshtransient

    Any updates to this yet?

  7. silijon commented on Feb 10, 2022

    @silijon

    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.

  8. DanijelkMSFT commented on Mar 10, 2022

    @DanijelkMSFT

    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.csv

  9. irvinesunday commented on Oct 19, 2022

    @irvinesunday
    Contributor

    Resolved with #213

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions