-
Notifications
You must be signed in to change notification settings - Fork 32
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
Missing GetDownloadUrl method for CaseExportOperation #338
Comments
Hey @oliveira-alexdias. As a workaround, you can use BaseRequest to access the GetDownloadUrl method as follows: var requestUrl = graphClient
.Compliance
.Ediscovery
.Cases["{ediscovery.case-id}"]
.Operations["{ediscovery.caseOperation-id}"]
.AppendSegmentToRequestUrl("microsoft.graph.ediscovery.caseExportOperation/getDownloadUrl");
var request = new BaseRequest(requestUrl, graphClient);
var response = await request.SendAsync<ODataMethodStringResponse>(null, CancellationToken.None);
var @string = response.Value; Hope this can help. |
Hey @maisarissi I believe there is an issue in Download URL functionality. Either getting the Download URL through this workaround you gave me or getting the Download URL through HTTP call it is returning a 500 Internal Server Error. Could you please check it?
var client = await graph.GetROPCClient(Scopes.Default);
var requestUrl = client
.Compliance
.Ediscovery
.Cases[aedCaseId.ToString()]
.Operations[aedExportId]
.AppendSegmentToRequestUrl("microsoft.graph.ediscovery.caseExportOperation/getDownloadUrl");
var request = new BaseRequest(requestUrl, client);
var response = await request.SendAsync<ODataMethodStringResponse>(null, CancellationToken.None);
return response.Value;
|
@mahage-msft can you take a look at this? Since the error is also happening in the Graph Explorer doesn't sound like an SDK error. |
Hi @oliveira-alexdias . |
Hey @maisarissi! Now it is working as expected. Thank you. |
Great to hear @oliveira-alexdias . I'll keep this issue open to track the OData cast fix so we can have the GetDownloadUrl as part of the Fluent API. Thank you! |
This is currently not showing up on the OpenAPI reference metadata due to the conversion library limiting child paths on derived/odata cast paths. Currently tracked via microsoft/OpenAPI.NET.OData#269 |
The Microsoft Documentation indicates to use the GetDownloadUrl like this:
However, the GetDownloadUrl is not available.
AB#10865
Expected behavior
It's expected to have GetDownloadUrl method
Client version
Microsoft.Graph version 4.9.0-preview
The text was updated successfully, but these errors were encountered: