Replies: 1 comment
-
@bajce : we currently don't have an easy way to populate the model via a custom request as the use case for these custom API calls was areas for which the SDK does not have support. That being said, please include the issues you're seeing in the mentioned GH issue and I'll see if can get that fixed (I'm very busy ~ vacation / conference, so it might take a while). Long term, this is something we can consider adding. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to convert the json batch response from custom Microsoft Graph API requests into PnP models?
I'm using a custom Graph API request to load sharing links using
drives/{driveId}/items/{itemId}/permissions?$filter=Link ne null
because I believe I can't useitem.File.GetShareLinks()
in a batch and also, there are sometimes issues withFile.GetShareLinks()
as noted in this GitHub issue.How can I conver the JSON custom API response into an IGraphPermissionCollection model, similar to the one returned by
File.GetShareLinks()
orFolder.GetShareLinks()
?Beta Was this translation helpful? Give feedback.
All reactions