InternalCreateItems method

Future<ServiceResponseCollection<ServiceResponse>> InternalCreateItems(
  1. Iterable<Item> items,
  2. FolderId? parentFolderId,
  3. MessageDisposition? messageDisposition,
  4. SendInvitationsMode? sendInvitationsMode,
  5. ServiceErrorHandling errorHandling,
)
Creates multiple items in a single EWS call. Supported item classes are EmailMessage, Appointment, Contact, PostItem, Task and Item. CreateItems does not support items that have unsaved attachments. The items to create. The Id of the folder in which to place the newly created items. If null, items are created in their default folders. Indicates the disposition mode for items of type EmailMessage. Required if items contains at least one EmailMessage instance. Indicates if and how invitations should be sent for items of type Appointment. Required if items contains at least one Appointment instance. What type of error handling should be performed.

Implementation

Future<ServiceResponseCollection<ServiceResponse>> InternalCreateItems(
  Iterable<Item> items,
  FolderId? parentFolderId,
  MessageDisposition? messageDisposition,
  SendInvitationsMode? sendInvitationsMode,
  ServiceErrorHandling errorHandling,
) {
  CreateItemRequest request = CreateItemRequest(this, errorHandling);

  request.ParentFolderId = parentFolderId;
  request.Items = items;
  request.MessageDisposition = messageDisposition;
  request.SendInvitationsMode = sendInvitationsMode;

  return request.Execute();
}