# OBJRESTORINGFLAGS

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.OBJRESTORINGFLAGS/

Object archiving flags.

- **Full name:** `MFiles.OBJRESTORINGFLAGS`
- **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-target_path_is_directory"></a>`target_path_is_directory` | `bool` | 2 | If present, archive location represents a directory. |
| <a id="f-overwrite_existing_versions"></a>`overwrite_existing_versions` | `bool` | 3 | If present, replace existing data with the incoming data. |
| <a id="f-delete_restored_archive"></a>`delete_restored_archive` | `bool` | 4 | If present, delete the archive once restored. |
| <a id="f-override_permissions"></a>`override_permissions` | `bool` | 5 | If present, use the overriding permissions. |
| <a id="f-restore_check_out_state"></a>`restore_check_out_state` | `bool` | 6 | DEPRECATED, DO NOT REUSE THE VALUE: const OBJRESTORINGFLAG OBJRESTORINGFLAG_RESETDELTATIMESTAMPS	= ( 1 << 5 );	//!< If present, delta timestamps are reset on export jobs. |
| <a id="f-do_not_destroy_objects"></a>`do_not_destroy_objects` | `bool` | 7 | If present, object destructions are not restored. |
| <a id="f-use_names_as_alises"></a>`use_names_as_alises` | `bool` | 8 | If present, incoming names can be used as aliases. |
| <a id="f-disable_external_object_types"></a>`disable_external_object_types` | `bool` | 9 | If present, all external connections of imported object types are disabled. |
| <a id="f-disable_external_user_groups"></a>`disable_external_user_groups` | `bool` | 10 | If present, all external connections of imported user groups are disabled. |
| <a id="f-disable_event_handlers"></a>`disable_event_handlers` | `bool` | 11 | If present, all imported event handlers are deactivated. |
| <a id="f-use_object_type_default_permissions"></a>`use_object_type_default_permissions` | `bool` | 12 | If present, use the default permissions from object types. |
| <a id="f-activate_automatic_permissions"></a>`activate_automatic_permissions` | `bool` | 13 | If present, new or changed definitions of automatic permissions are activated on objects. |
| <a id="f-ignore_automatic_permissions"></a>`ignore_automatic_permissions` | `bool` | 14 | If present, ignore the definitions of automatic permissions from the imported objects. |
| <a id="f-do_not_update_structure_item_ids"></a>`do_not_update_structure_item_ids` | `bool` | 15 | Forces the target vault to keep existing structure item guids. |
| <a id="f-omit_done_file"></a>`omit_done_file` | `bool` | 16 | Prevents the 'done' file output. |
| <a id="f-disable_code_in_property_definitions"></a>`disable_code_in_property_definitions` | `bool` | 17 | If present, all custom code in imported property definitions is deactivated. |
| <a id="f-disable_code_in_workflows"></a>`disable_code_in_workflows` | `bool` | 18 | If present, all custom code in imported workflows is deactivated. |
| <a id="f-allow_signed_code"></a>`allow_signed_code` | `bool` | 19 | If present, unchanged or signed custom code is always allowed in import. |
| <a id="f-import_older_views"></a>`import_older_views` | `bool` | 20 | If present, the views with an older last modified date and time are imported. |

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

## Used in fields

- [`RestoreFromArchiveJob.options`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.RestoreFromArchiveJob/index.md#f-options): Bit flags that control the execution of this restoring job.
