-
Notifications
You must be signed in to change notification settings - Fork 39
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
Device Management: ExportJobs #765
Comments
Thanks for raising this @jkroepke Any chance you can reshare the link for the docs page? I believe the link you shared is for creating a job and not reading a job. Do you get different results if you perform
vs
In my head the two are functionally equivalent given the convention supported by Odata. |
Sure, take a look at the first post: https://learn.microsoft.com/en-us/mem/intune/fundamentals/reports-export-graph-apis Do a POST on /v1.0/deviceManagement/reports/exportJobs Do GET on url property. to fetch the report. I do this manually via Postman and it works.
Hm. No. I test it via Postman and they are equal. I have to check the code. Would it be possible to adjust the docs? If I would do a support request via MS Ticket, I expect that they would blame me, that "my" code does not following the docs. |
@andrueastman I will close the issue. I have no clue what my issue initially was. after testing the API with Postman, everything works and now it works with the SDK as well. |
Describe the bug
I'm trying to use the export Job API to get an report via API.
I'm using the document: https://learn.microsoft.com/en-us/mem/intune/fundamentals/reports-export-graph-apis
Based on that information, I also found this Graph API docs: https://learn.microsoft.com/en-us/graph/api/intune-reporting-devicemanagementexportjob-create?view=graph-rest-1.0&tabs=http
Based on the code posted below, the SDK tries to fetch an wrong URL to obtain the status for the export.
Expected behavior
I'm able to use Graph SDK the get the data from exportJob
How to reproduce
SDK Version
v1.47.0
Latest version known to work for scenario above?
No response
Known Workarounds
N/A
Debug output
Click to expand log
```The text was updated successfully, but these errors were encountered: