Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #164 from avereshchak/conversation-group-action-bug
Browse files Browse the repository at this point in the history
ApplyConversationAction Multiple Items Bug
  • Loading branch information
davster authored Mar 8, 2018
2 parents d28aa81 + 75da10b commit 812974b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Core/ExchangeService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3705,7 +3705,7 @@ private ServiceResponseCollection<ServiceResponse> ApplyConversationAction(
actionType == ConversationActionType.AlwaysMove ||
actionType == ConversationActionType.AlwaysDelete,
"ApplyConversationAction",
"Invalic actionType");
"Invalid actionType");

EwsUtilities.ValidateParam(conversationIds, "conversationId");
EwsUtilities.ValidateMethodVersion(
Expand All @@ -3714,16 +3714,18 @@ private ServiceResponseCollection<ServiceResponse> ApplyConversationAction(
"ApplyConversationAction");

ApplyConversationActionRequest request = new ApplyConversationActionRequest(this, errorHandlingMode);
ConversationAction action = new ConversationAction();

foreach (var conversationId in conversationIds)
{
ConversationAction action = new ConversationAction();

action.Action = actionType;
action.ConversationId = conversationId;
action.ProcessRightAway = processRightAway;
action.Categories = categories;
action.EnableAlwaysDelete = enableAlwaysDelete;
action.DestinationFolderId = destinationFolderId != null ? new FolderIdWrapper(destinationFolderId) : null;

request.ConversationActions.Add(action);
}

Expand Down

0 comments on commit 812974b

Please sign in to comment.