Closed fey101 closed 2 years ago
@andrueastman is there a duplicate of this issue being tracked for the next version of the .NET SDK?
@zengin, The Kiota generator of the SDK already supports this.
I think, we can keep this open for now and close it once we get the preview version out.
Closing this for now.
With the Kiota based previews you should be able to do something like using the generated parameter objects.
var invitePostBody = new InvitePostRequestBody
{
Recipients = new List<DriveRecipient>
{
new DriveRecipient
{
Email = "robin@contoso.org"
}
},
Message = "Welcome",
RequireSignIn = false,
SendInvitation = true,
Roles = new List<string>
{
"write"
}
};
await graphServiceClient.Workbooks["workbook-itemId"]
.Invite
.PostAsync(invitePostBody);
Order of parameters is not guaranteed in such a request as this: (Example extracted from documentation page here)
Moving to parameter objects will eliminate the need for rigid parameter ordering More on this discussed on this PR https://github.com/microsoftgraph/msgraph-metadata/pull/64