# OBJARCHIVINGFLAGS

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Reference](https://developer.m-files.com/APIs/gRPC-API/Reference/index.md) > [Messages](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.OBJARCHIVINGFLAGS/

Object archiving flags.

- **Full name:** `MFiles.OBJARCHIVINGFLAGS`
- **Proto file:** [`mfiles/enums.proto`](https://developer.m-files.com/APIs/gRPC-API/downloads/proto/mfiles/enums.proto)

<a id="fields"></a>

## Fields

| Field | Type | Number | Description |
|---|---|---|---|
| <a id="f-all"></a>`all` | `bool` | 1 | Specifies all flags set; Including any future flags. |
| <a id="f-overwrite_existing_files"></a>`overwrite_existing_files` | `bool` | 2 | If present, existing target files are overwritten. If not present, job fails if a target file already exists. |
| <a id="f-archive_latest_version_only"></a>`archive_latest_version_only` | `bool` | 3 | If present, only the latest version is archived. |
| <a id="f-destroy_archived_objects"></a>`destroy_archived_objects` | `bool` | 4 | If present and archiving full objects, the archived objects are destroyed. |
| <a id="f-reset_marked_for_archiving"></a>`reset_marked_for_archiving` | `bool` | 5 | If present, the 'Marked for archiving' property is reset upon archiving. |
| <a id="f-archive_data_files"></a>`archive_data_files` | `bool` | 6 | If present, data files are archived instead of document files. |
| <a id="f-create_archive_pdfs"></a>`create_archive_pdfs` | `bool` | 7 | If present, files are also saved as PDF/A. |
| <a id="f-archive_destroyed_objects"></a>`archive_destroyed_objects` | `bool` | 8 | If present, destroyed objects are archived. |
| <a id="f-target_path_is_directory"></a>`target_path_is_directory` | `bool` | 9 | If present, archive location represents a directory. |
| <a id="f-ignore_last_run_timestamp"></a>`ignore_last_run_timestamp` | `bool` | 10 | If present, delta timestamp is not applied (even if provided as non-FILETIME_ZERO). |
| <a id="f-ignore_search_conditions"></a>`ignore_search_conditions` | `bool` | 11 | If present, search filter is not applied (even if provided). |
| <a id="f-export_drop_out_information"></a>`export_drop_out_information` | `bool` | 12 | If present, dropout information is exported if a previously exported object is not anymore part of the export set. |
| <a id="f-export_content"></a>`export_content` | `bool` | 13 | If present, vault content will be exported. |
| <a id="f-export_structure"></a>`export_structure` | `bool` | 14 | If present, vault metadata structure will be exported. |
| <a id="f-export_value_list_values"></a>`export_value_list_values` | `bool` | 15 | If present, values of the selected values lists will be exported. |
| <a id="f-export_private_view_settings"></a>`export_private_view_settings` | `bool` | 16 | If present, private settings of the selected views will be exported. |
| <a id="f-export_migrated_as_internal"></a>`export_migrated_as_internal` | `bool` | 17 | If present, migrated objects will be exported as internal objects without <externalrepository> element. |
| <a id="f-export_workspace_tabs"></a>`export_workspace_tabs` | `bool` | 18 | If present, workspace tabs will be exported. |

<a id="used-in-fields"></a>

## Used in fields

- [`ArchiveDocsJob.options`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ArchiveDocsJob/index.md#f-options): Bit flags that control the execution of this archiving job.
- [`ArchiveOldVersionsJob.options`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ArchiveOldVersionsJob/index.md#f-options): Bit flags that control the execution of this archiving job. Note: Currently only OBJARCHIVINGFLAG_OVERWRITEEXISTINGFILES, OBJARCHIVINGFLAG_DESTROYAFTERWARDS, and OBJARCHIVINGFLAG_RESETMFA are supported.
