Share via

Graph API to Graph SDK migration

Krishna Raju G V S S R Penumatsa 1 Reputation point Microsoft Employee
2021-11-24T00:23:34.777+00:00

Hi ,

Could you please help us on the below .

We have started using Microsoft graph SDK and migrating all the existing graph API calls to use Microsoft Graph SDK and as part of that we need to update the below API to use Graph ASP.net SDK but not able compose the query . Request you to help us on this .

API Call :
string renewUrl = $"deviceAppManagement/mobileApps/{contentFileInfo.AppId}/{win32LobType}/contentVersions/{contentFileInfo.ContentVersionId}/files/{contentFileInfo.AzureFileId}/renewUpload";
using (await this.graphProxy.PostAsync(renewUrl, string.Empty)) { };

Graph SDK Call :
var response = graphClient.DeviceAppManagement.MobileApps[contentFileInfo.AppId]
.AppendSegmentToRequestUrl(win32LobType)
.Expand("contentVersions")

Microsoft Security | Microsoft Graph

Your answer

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