I need to install an app on a server that only supports .NET 4.7x, which appears to limit me to MS Graph 4.x. I have the authorization code in place and I can read emails, but I need to move a message from one folder to another. None of the code examples I can find work. They all reference the MovePostRequestBody function, which Visual Studio says is not defined in MS Graph 4.54, yet my research shows this function has been around for a while. Why is this not defined? Where can I find it, or what other method can I use to move a message? Below are two different attempts at try to access the function:
Dim moveBody As New Microsoft.Graph.Users.Item.Messages.Item.Move.MovePostRequestBody() With {
.DestinationId = "destination-folder-id"
}
Dim moveRequest As New Microsoft.Graph.Models.MovePostRequestBody With {
.DestinationId = destinationFolderId
}