saveMailAttachmentsToDatabase method

Future<RestApiResponse> saveMailAttachmentsToDatabase(
  1. String mailOid, {
  2. bool saveAll = false,
  3. bool extractSingularZipFile = false,
  4. List<int> indices = const <int>[],
})

Speichert Anhänge einer E-Mail in der Datenbank.

Ruft POST v1/mail/saveAttachmentsToDB/{mailOid} auf und übernimmt ausgewählte oder alle Anhänge in DOCUframe.

mailOid - OID der Quell-E-Mail saveAll - Alle Anhänge speichern extractSingularZipFile - Eine einzelne ZIP-Datei beim Speichern entpacken indices - Indizes der Anhänge, die gespeichert werden sollen

Returns: RestApiResponse mit dem Ergebnis des Speichervorgangs

Implementation

Future<RestApiResponse> saveMailAttachmentsToDatabase(
  String mailOid, {
  bool saveAll = false,
  bool extractSingularZipFile = false,
  List<int> indices = const <int>[],
}) {
  return _execute(
    method: ApiHttpMethod.post,
    path: '/mail/saveAttachmentsToDB/$mailOid',
    body: jsonEncode(<String, dynamic>{
      'saveAll': saveAll,
      'extractSingularZipFile': extractSingularZipFile,
      'indices': indices,
    }),
    operation: 'saveMailAttachmentsToDatabase',
  );
}