Skip to content

Microsoft.Graph.Reports - Get-MgReportEmailAppUsageUserDetail62Ec #890

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

Closed
weyCC81 opened this issue Oct 4, 2021 · 1 comment
Closed
Labels

Comments

@weyCC81
Copy link

weyCC81 commented Oct 4, 2021

  • Environment
    Module "Microsoft.Graph"
    Version "1.7.0",
    MgProfile = v1.0 & MgProfile = beta

CurrentCulture : de-CH
PSVersion 5.1.18362.1714

  • Command
    Get-MgReportEmailAppUsageUserDetail62Ec -Date (Get-Date -Format "yyyy-MM-dd")
    Get-MgReportEmailAppUsageUserDetail62Ec -Date "2021-10-04"

  • Output

Get-MgReportEmailAppUsageUserDetail62Ec : Expression expected at position 5 in 'date==2021-10-04'.
At line:1 char:1

  • Get-MgReportEmailAppUsageUserDetail62Ec -Date "2021-10-04" -OutFile $ ...
  •   + CategoryInfo          : InvalidOperation: ({ Date = 04.10.2021 00:00:00 }:<>f__AnonymousType15`1) [Get- MgReportEma...rDetail62Ec_Get], RestException`1
     + FullyQualifiedErrorId : BadRequest,Microsoft.Graph.PowerShell.Cmdlets.GetMgReportEmailAppUsageUserDetail62Ec_Get
    
@ghost ghost added the ToTriage label Oct 4, 2021
@peombwa peombwa added Bug - P2 and removed ToTriage labels Oct 7, 2021
@peombwa
Copy link
Member

peombwa commented Oct 7, 2021

Thanks for bringing this to our attention. This is a formatting issue with how the command handles the date parameter. Also, the command is currently broken due to the issues mentioned here #894.

As a workaround, please use Invoke-MgGraphRequest command as we work on a fix.

$url = "https://graph.microsoft.com/v1.0/reports/getEmailAppUsageUserDetail(date=2021-10-05)"
Invoke-MgGraphRequest -Method Get -Uri $url -OutputFilePath "C:\Development\PowerShell\MyFile.csv"

Duplicate of #894.

@peombwa peombwa closed this as completed Oct 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants