EnableAlwaysCategorizeItemsInConversations method

Future<ServiceResponseCollection<ServiceResponse>> EnableAlwaysCategorizeItemsInConversations(
  1. Iterable<ConversationId> conversationId,
  2. Iterable<String> categories,
  3. bool processSynchronously
)
Sets up a conversation so that any item received within that conversation is always categorized. Calling this method results in a call to EWS. The id of the conversation. The categories that should be stamped on items in the conversation. Indicates whether the method should return only once enabling this rule and stamping existing items in the conversation is completely done. If processSynchronously is false, the method returns immediately.

Implementation

Future<ServiceResponseCollection<ServiceResponse>>
EnableAlwaysCategorizeItemsInConversations(
  Iterable<ConversationId> conversationId,
  Iterable<String> categories,
  bool processSynchronously,
) {
  EwsUtilities.ValidateParamCollection(categories, "categories");
  return ApplyConversationAction(
    ConversationActionType.AlwaysCategorize,
    conversationId,
    processSynchronously,
    StringList.fromStrings(categories),
    false,
    null,
    ServiceErrorHandling.ReturnErrors,
  );
}