Intune's Reports Export Graph API Is Not Working For Some of "Export Parameters"

Swahela Mulla 95 Reputation points
2023-05-26T07:46:46.8966667+00:00

POST

https://graph.microsoft.com/beta/deviceManagement/reports/exportJobs

When I am running this post request, it is showing error message.

User's image

{
    "reportName": "FeatureUpdateDeviceState",
    "localizationType": "LocalizedValuesAsAdditionalColumn",
    "format": "csv",
    "select": [
        "UPN",
        "DeviceId",
        "AADDeviceId",
        "EventDateTimeUTC",
        "AlertType"
    ]
}
Microsoft Security | Intune | Other
Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. Vasil Michev 119.6K Reputation points MVP Volunteer Moderator
    2023-05-26T08:00:08.1866667+00:00

    Beta endpoints are not supported, and subject to change. Best you can do is leave feedback under the documentation page.


  2. Crystal-MSFT 53,991 Reputation points Microsoft External Staff
    2023-05-29T02:05:43.9933333+00:00

    @Swahela Mulla, Thanks for posting in Q&A.

    For the JSON you tried in request body, I find the report name and column ""EventDateTimeUTC", "AlertType" are not correct. You can change to the following one to make it works:

    {
        "reportName": "WindowsUpdatePerPolicyPerDeviceStatus",
        "localizationType": "LocalizedValuesAsAdditionalColumn",
        "format": "csv",
        "select": [
            "UPN",
            "DeviceId",
            "AADDeviceId",
            "CurrentDeviceUpdateStatusEventDateTimeUTC",
            "LatestAlertMessage",
        ]
    }
    

    User's image

    Hope the above information can help.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  3. Swahela Mulla 95 Reputation points
    2023-05-29T04:44:12.0133333+00:00

    Hi @Crystal-MSFT
    I tried with given JSON body also but still it is showing error message.

    User's image


  4. Crystal-MSFT 53,991 Reputation points Microsoft External Staff
    2023-05-29T05:43:41.37+00:00

    @Swahela Mulla, Thanks for the reply. Try the following JSON to see if it can work:

    {
        "reportName": "WindowsUpdatePerPolicyPerDeviceStatus",
        "filter": "(PolicyId eq '503a0be5-0978-4ae4-bcc4-c2ef61c2fe4d')",
        "localizationType": "LocalizedValuesAsAdditionalColumn",
        "format": "csv",
        "select": [
            "UPN",
            "DeviceId",
            "AADDeviceId",
            "CurrentDeviceUpdateStatusEventDateTimeUTC",
            "LatestAlertMessage"
        ]
    }
    

    User's image

    0 comments No comments

  5. Crystal-MSFT 53,991 Reputation points Microsoft External Staff
    2023-05-29T05:44:51.92+00:00

    @Swahela Mulla, Thanks for the reply. Try the following JSON to see if it can work:

    {
        "reportName": "WindowsUpdatePerPolicyPerDeviceStatus",
        "filter": "(PolicyId eq '503a0be5-0978-4ae4-bcc4-c2ef61c2fe4d')",
        "localizationType": "LocalizedValuesAsAdditionalColumn",
        "format": "csv",
        "select": [
            "UPN",
            "DeviceId",
            "AADDeviceId",
            "CurrentDeviceUpdateStatusEventDateTimeUTC",
            "LatestAlertMessage"
        ]
    }
    

    User's image


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.