Skip to content
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

[Client bug]: Unable to set the properties while moving message in single request. #2203

Closed
sarfaraz78615 opened this issue Nov 9, 2023 · 2 comments

Comments

@sarfaraz78615
Copy link

Unable to set the properties while moving message in single request.

public static async Task<gModel.Message?> MoveEmail(string messageId)
 {
     return await _userClient!.Users[mailBox]
         .Messages[messageId]
         .Move
         .PostAsync(new Microsoft.Graph.Users.Item.Messages.Item.Move.MovePostRequestBody
         {
              DestinationId = GqlSetting.DestinationFolderID,
              AdditionalData = new Dictionary<string, object>
              {
                  { "Categories", new string[] { "Resolved By ECMS Bulk_1" } }
              }
         }, 
         (config) =>
         {   
             config.Headers.Add("Prefer", "IdType=\"ImmutableId\"");
         });
 }
@andrueastman
Copy link
Member

Thanks for raising this @sarfaraz78615

Any chance you can provide more details on whether you receive an error or the API result is not as expected?

Copy link
Contributor

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants