> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Record

### *class* Record

Stores and provides access to record attributes, pseudo-attributes, links and children. Provides methods for adding,
editing and deleting records, and importing/exporting record data.

New [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) objects may be created to represent records that do not currently exist in the database:

* A name and parent table must be specified. `name` will become the record’s long name. The record short name
  (or tree name) can be set via the argument `short_name`, or via the [`Record.short_name`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.short_name) property following
  object creation. If a record is pushed to MI without a specifying short name, the short name will default to the
  record name.
* Records created this way will not exist in the host database until the changes have been
  pushed to MI (see [`Session.update()`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/session#GRANTA_MIScriptingToolkit.granta.mi.Session.update)).

#### NOTE

Do not create new instances of [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) objects for records which are already in the database.
Existing records will have Foundation API classes associated with them, from which the Streamlined API will
automatically generate and return [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) objects as required.

#### \_\_init\_\_(name, table, parent=None, short\_name=None, attributes=None, subsets=None, folder=None, record\_color=None, release\_record=True)

* **Parameters:**
  * **name** – [`str`](https://docs.python.org/3/library/stdtypes.html#str) (Long name for new records)
  * **table** – [`Table`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/table#GRANTA_MIScriptingToolkit.granta.mi_tree_classes.Table) object
  * **parent** – [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) or [`Table`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/table#GRANTA_MIScriptingToolkit.granta.mi_tree_classes.Table) object
  * **short\_name** – [`str`](https://docs.python.org/3/library/stdtypes.html#str) (Short (tree) name for new records)
  * **attributes** – Dict\[[`str`](https://docs.python.org/3/library/stdtypes.html#str), [`AttributeValue`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-values#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeValue)]
  * **subsets** – Set\[[`str`](https://docs.python.org/3/library/stdtypes.html#str)] (Subsets the record belongs to)
  * **folder** – [`bool`](https://docs.python.org/3/library/functions.html#bool) (Whether the record is ‘Folder’ type)
  * **record\_color** – [`RecordColor`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/constants#GRANTA_MIScriptingToolkit.granta.mi_constants.RecordColor) (Color of the record)
  * **release\_record** – [`bool`](https://docs.python.org/3/library/functions.html#bool) (Release state of the record; `True` to release next version)
* **Returns:**
  None

#### *property* name

Long name of record.

If the [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) object represents an existing record:

* The property will initially return the exported name of the record. It will be
  fetched if it has not already been exported.
* If the property is modified, the [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) name will be set to the specified
  value.
* If the property is set to `None`, the [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) name will be reset to the
  exported value.

If the [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) object represents a new record:

* The property will initially return the value specified in the [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) constructor.
* If the property is modified, the [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) name will be set to the specified
  value.
* If the property is set to `None`, the [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) name will be set to `None`.

#### NOTE

If a [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) is imported with `name` set to `None`, a `ValueError` will be
raised.

* **Return type:**
  [str](https://docs.python.org/3/library/stdtypes.html#str)

#### *property* mi

MI Session that was used to create or access the record.
Used for any Service Layer calls made by the [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) object.

* **Returns:**
  [`Session`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/session#GRANTA_MIScriptingToolkit.granta.mi.Session) object

#### *property* table

Parent [`Table`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/table#GRANTA_MIScriptingToolkit.granta.mi_tree_classes.Table) the record belongs to.

* **Returns:**
  [`Table`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/table#GRANTA_MIScriptingToolkit.granta.mi_tree_classes.Table) object

#### *property* table\_name

Name of parent table.

* **Returns:**
  str

#### *property* db\_key

Database key for the database the record belongs to.

* **Returns:**
  str

#### *property* subsets

Subsets that the record belongs to.

* **Returns:**
  Set\[str]

#### *property* flag\_for\_release

Whether the record will be made available to users when it is next updated.

* `True` (default): If changes were made to the [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record), a new version will be
  created, otherwise the unreleased version of the record will be released when the server is updated.
* `False`: If changes were made to the [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record), a new, unreleased version
  will be created when the server is updated.

#### NOTE

If you do not have the correct permissions to change release states, setting this property
will not have the documented effect. Please see the Service Layer documentation for more details.

* **Returns:**
  bool or None

#### *property* color

Color of the record when displayed in MI Viewer and other Granta MI applications.

If the [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) object represents an existing record:

* The `color` property will initially return the exported color of the record. It will be
  fetched if it has not already been exported.
* If `color` is modified, the [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) color will be set to the specified value.
* If `color` is set to `None`, the [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) color will be reset to the
  exported value.

If the [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) object represents a new record:

* The `color` property will initially return the value specified in the [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record)
  constructor. If not set, it will default to the value InheritFromParent.
* If `color` is modified, the [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) color will be set to the specified value.
* If `color` is set to `None`, the [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) color will be set to the value
  InheritFromParent.

#### NOTE

If a [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) is imported with `color` set to `None`, the record will
inherit the color of the parent record.

* **Returns:**
  [`RecordColor`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/constants#GRANTA_MIScriptingToolkit.granta.mi_constants.RecordColor)

#### *property* short\_name

Short (tree) name of the record.

If the [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) object represents an existing record:

* The `short_name` property will initially return the exported short name of the record.
  It will be fetched if it has not already been exported.
* If `short_name` is modified, the [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) short name will be set to the specified
  value.
* If `short_name` is set to `None`, the [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) short name will be reset to the
  exported value.

If the [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) object represents a new record:

* The `short_name` property will initially return the value specified in the
  [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) constructor.
* If `short_name` is modified, the [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) short name will be set to the specified
  value.
* If `short_name` is set to `None`, the [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) short name will be set to
  `None`.

#### NOTE

If a [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) is imported with `short_name` set to `None`, the short name
will default to the record name.

* **Returns:**
  str, optional

#### *property* parent

Parent record or table of this record.

* **Raises:**
  [**PermissionError**](https://docs.python.org/3/library/exceptions.html#PermissionError) – if parent record cannot be accessed due to access control.
* **Returns:**
  [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record), [`Table`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/table#GRANTA_MIScriptingToolkit.granta.mi_tree_classes.Table) object, or [`None`](https://docs.python.org/3/library/constants.html#None)

#### find\_parent()

Finds and sets the parent record or table.

Since the parent record is in all subsets that this record is in, this operation performs no subset filtering.
:raises PermissionError: if parent record cannot be accessed due to access control.
:return: None

#### *property* history\_guid

Record History GUID, if it exists. Records can be uniquely identified by their Record History GUID, which
will return the latest version the user has access to.

* **Returns:**
  str or None

#### *property* record\_guid

Record GUID, if it exists. Each version of a record can be uniquely identified by its Record GUID.

* **Returns:**
  str or None

#### *property* history\_identity

Record history identity, if it exists.

* **Returns:**
  int or None

#### set\_attributes(attributes)

Flags attributes to update on the server when [`Session.update()`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/session#GRANTA_MIScriptingToolkit.granta.mi.Session.update)
is next called. If [`set_attributes()`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.set_attributes) is not called on modified attributes, changes
to those attributes will not be transferred to MI.

* **Parameters:**
  **attributes** – Iterable\[AttributeValue]
* **Returns:**
  None

#### clear\_attributes(attributes)

Flags attributes to have their data value on the server deleted when [`Session.update()`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/session#GRANTA_MIScriptingToolkit.granta.mi.Session.update)
is next called. Does not delete the local value of flagged attributes, only the data on MI. Supersedes
previous [`set_attributes()`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.set_attributes) calls.

* **Parameters:**
  **attributes** – Iterable\[AttributeValue]
* **Returns:**
  None

#### *property* viewer\_url

The MI Viewer URL for the record.

* **Returns:**
  str

#### *property* path

Browse tree path for the record as a list of folder short names.

* **Returns:**
  List\[str]

#### *property* pseudo\_attributes

Pseudo-attributes associated with the record, indexed by name.

#### NOTE

Supported names are:

* `recordType`
* `recordHistoryIdentity`
* `recordColor`
* `recordVersionNumber`
* `tableName`
* `writable`
* `parentShortName`
* `parentName`
* `parentRecordHistoryIdentity`
* `shortName`
* `modifiedDate`
* `createdDate`
* `releasedDate`
* `lastModifier`
* `creator`
* `subsets`
* `name`

#### WARNING

This property is deprecated. Pseudo-attribute values are available as properties:

* [`Record.type`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.type)
* [`Record.history_identity`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.history_identity)
* [`Record.color`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.color)
* [`Record.version_number`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.version_number)
* [`Record.table_name`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.table_name)
* [`Record.is_writable`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.is_writable)
* [`Record.parent_record_short_name`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.parent_record_short_name)
* [`Record.parent_record_name`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.parent_record_name)
* [`Record.parent_record_history_identity`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.parent_record_history_identity)
* [`Record.short_name`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.short_name)
* [`Record.last_modified_on`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.last_modified_on)
* [`Record.created_on`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.created_on)
* [`Record.released_on`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.released_on)
* [`Record.last_modified_by`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.last_modified_by)
* [`Record.created_by`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.created_by)
* [`Record.subsets`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.subsets)
* [`Record.name`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.name)

- **Returns:**
  Dict\[str, [`PseudoAttributeValue`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-values#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.PseudoAttributeValue)]

#### refresh\_path()

Re-calculates the record path within the current table.

Since all ancestor records are in all subsets that this record is in, this operation
performs no subset filtering.

Makes a Service Layer call.

* **Returns:**
  None

#### *property* exists\_on\_server

Whether the record exists on the server (True) or has been created in memory (False).

* **Returns:**
  bool

#### refresh\_properties()

Refreshes the Foundation API [`GRANTA_MIScriptingToolkit.TreeRecord`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/foundation/api#module-GRANTA_MIScriptingToolkit.TreeRecord) object associated with the
[`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record), if it has one.
Makes a Service Layer call.

* **Returns:**
  None

#### refetch\_children(filter\_by\_subset=True, subset\_name=None)

Refreshes the list of children belonging to the record. If `filter_by_subset` is True then the
operation will only return records that are in the subset given in `subset_name`, if no value is
provided then the subset specified on the table will be used. If `filter_by_subset` is False
then records will be returned from all subsets. Makes a Service Layer call.

* **Parameters:**
  * **filter\_by\_subset** – bool
  * **subset\_name** – str
* **Returns:**
  None

#### WARNING

If you set `filter_by_subset` to True, you must provide a `subset_name` or ensure that the table
has only one subset applied. If more than one subset is applied, this will raise a ValueError.

#### refresh\_attributes()

Checks whether the record’s attributes have changed on the server, and updates the [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) object if
required. Can also be used to populate attributes. Makes a Service Layer call.

Always includes binary data in the response. Use the [`bulk_fetch()`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/table#GRANTA_MIScriptingToolkit.granta.mi_tree_classes.Table.bulk_fetch) method if URL
data representation is required.

* **Returns:**
  None

#### refetch\_pseudo\_attributes()

Fetches pseudo-attribute data for this record, and updates subsets for the record if not set.
Makes a Service Layer call.

* **Returns:**
  None

#### refetch\_pseudos()

Fetches pseudo-attribute data for this record, and updates subsets for the record if not set.
Makes a Service Layer call.

#### Deprecated

Deprecated since version 4.2: This method has been renamed to `refetch_pseudo_attributes`.

* **Returns:**
  None

#### *property* attributes

Attributes associated with the record, indexed by attribute name.

* **Returns:**
  Dict\[str,
  [`AttributeValue`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-values#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeValue)]

#### get\_attributes(names=None, types=None, include\_attributes=True, include\_meta\_attributes=False, include\_pseudo\_attributes=False, empty=None, \*\*kwargs)

Retrieve a list of attributes from the `record.attributes` dictionary. You can narrow the results by
specifying the attribute names or data types, or the required attribute categories (attribute,
meta-attribute, or pseudo-attribute).

If the `record.attributes` dictionary is empty when `get_attributes` is called, it will be
populated before retrieving any attributes.

This operation performs no subset filtering, so all tabular rows will be included in the response
regardless of the subset membership of the linked records.

* **Example:**
  `r.get_attributes(names=['Density', 'Stress-Strain'], types=['POIN', 'FUNC'], include_meta_attributes=True)`
  will return all point or functional series attributes or meta-attributes named Density or Stress-Strain
  from the record.
* **Parameters:**
  * **names** – List\[str]
  * **types** – List\[str] (Attribute data types; allowed values are: DISC, DTTM, FILE, FUNC, HLNK, INPT, LOGI,
    LTXT, PICT, POIN, RNGE, STXT, TABL)
  * **include\_attributes** – bool (whether to retrieve attributes that are not meta-attributes or
    pseudo-attributes; `True` by default)
  * **include\_meta\_attributes** – bool (whether to retrieve meta-attributes; `False` by default)
  * **include\_pseudo\_attributes** – bool (whether to retrieve pseudo-attributes; `False` by default)
  * **empty** – bool (whether to check if the returned attributes are populated)

#### Versionchanged

Changed in version 4.2: Argument `include_metas` was renamed to `include_meta_attributes`. `include_metas` may still be used,
but is deprecated.

#### Versionchanged

Changed in version 4.2: Argument `include_pseudos` was renamed to `include_pseudo_attributes`. `include_pseudos` may still be
used, but is deprecated.

* **Returns:**
  List\[Union\[[`PseudoAttributeValue`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-values#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.PseudoAttributeValue),
  [`AttributeValue`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-values#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeValue)]]

#### *property* type

Record type.

On record creation via the MI Scripting Toolkit, the record type can only be set to [`RecordType.Folder`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/constants#GRANTA_MIScriptingToolkit.granta.mi_constants.RecordType.Folder)
or [`RecordType.Record`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/constants#GRANTA_MIScriptingToolkit.granta.mi_constants.RecordType.Record). The type of an existing record cannot be set via this property.

Adding children to a record, or populating attributes on a folder both result in the type updating to
[`RecordType.Generic`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/constants#GRANTA_MIScriptingToolkit.granta.mi_constants.RecordType.Generic) during the update.

* **Return type:**
  [RecordType](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/constants.md#GRANTA_MIScriptingToolkit.granta.mi_constants.RecordType)

#### all\_children(include\_folders=False, include\_generics=True, filter\_by\_subset=True, subset\_name=None)

Returns a flattened list of all descendants of a record and populates the [`children`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.children) property of
each [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) object traversed in the process.

#### WARNING

This method is deprecated. Use [`get_descendants()`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.get_descendants).

#### get\_descendants(include\_folders=False, include\_generics=True, filter\_by\_subset=True, subset\_name=None)

Returns a flattened list of all descendants of a record and populates the [`children`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.children) property of
each [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) object traversed in the process.

If `filter_by_subset` is True then the operation will only return records that are in the subset given in
`subset_name`, if no value is provided then the subset specified on the table will be used.
If `filter_by_subset` is False then records will be returned from all subsets. Makes a Service Layer call.

* **Parameters:**
  * **include\_folders** – bool
  * **include\_generics** – bool
  * **filter\_by\_subset** – bool
  * **subset\_name** – str
* **Returns:**
  List\[[`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record)]

#### WARNING

If you set `filter_by_subset` to True, you must either provide a `subset_name` or ensure that the table
has only one subset applied. If more than one subset is applied, this will raise a ValueError.

#### *property* children

Records that are direct children of the current record.

Records returned by this property may have been cached from previous calls to
[`Record.get_descendants()`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.get_descendants) (previously [`Record.all_children()`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.all_children)), [`Record.refetch_children()`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.refetch_children) or
[`Table.all_records()`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/table#GRANTA_MIScriptingToolkit.granta.mi_tree_classes.Table.all_records), which all apply subset filtering. If the [`Table`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/table#GRANTA_MIScriptingToolkit.granta.mi_tree_classes.Table) subset configuration has
since been updated, refresh the list of children via one of the methods listed.

If there is no cached list of children, children are dynamically fetched on property access via
[`refetch_children()`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.refetch_children). The default subset filtering behavior is applied.

* **Returns:**
  List\[[`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record)]

#### WARNING

You must ensure that the table has only one subset applied. If more than one subset is
applied, this will raise a ValueError when dynamically retrieving children records.

#### *property* links

Link groups for this [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) object, and the records they link to. Smart links may be viewed but not
edited through the `links` property.

This operation performs no subset filtering.

* **Returns:**
  Dict\[str, Set\[[`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record)]]

#### get\_associated\_records(target\_table, link\_direction='Both', attribute\_path=None)

Gets all records in a target table that are linked to the current [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) object via tabular data
association chains. This can be filtered by link direction and to a specific path.

If `attribute_path` is provided, then only records from that exact path will be returned. Note that the
specified tabular attributes will be the ‘source’ of the tabular link, and there may be tables in the chain
with no attributes.

This operation performs no subset filtering.

* **Parameters:**
  * **target\_table** – [`Table`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/table#GRANTA_MIScriptingToolkit.granta.mi_tree_classes.Table) object
  * **link\_direction** – str (Which direction to follow links in: `Both` (default), `Forward`, `Reverse`)
  * **attribute\_path** – List\[[`AttributeDefinition`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinition)] (Path of tabular attributes to follow - if `None`,
    all paths are followed)
* **Returns:**
  List\[[`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record)]

#### set\_links(link\_name, records)

Adds the specified records to the named record link group and flags those links for update. Links that are not
set through this method will not be updated on the server.

* **Parameters:**
  * **link\_name** – str
  * **records** – Iterable\[[`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record)]
* **Returns:**
  None

#### decache\_attributes()

Removes all attributes from the [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record), replacing the `attributes` property with an empty
dictionary.

* **Returns:**
  None

#### decache\_links()

Removes all links from the [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record), setting the `links` property to `None`.

* **Returns:**
  None

#### *property* is\_folder

Whether the record is a [`RecordType.Folder`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/constants#GRANTA_MIScriptingToolkit.granta.mi_constants.RecordType.Folder) type.

* **Returns:**
  bool

#### *property* release\_state

Release state of the record. Allowed values are ‘Released’, ‘Superseded’, ‘Withdrawn’, ‘Unreleased’,
‘Unversioned’ or ‘Unknown’.

* **Returns:**
  str

#### *property* record\_history

Details about the record history. Includes user, datetime, and notes associated with events of the record’s
life cycle.

* **Returns:**
  [`RecordVersionHistory`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting#GRANTA_MIScriptingToolkit.granta.mi_meta_classes.RecordVersionHistory)

#### refetch\_record\_release\_state()

Fetches the record’s release state from the server. Makes a Service Layer call.

* **Returns:**
  None

#### *property* all\_versions

Returns all versions or the record as dictionary of [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) objects indexed by version number, and the
letter ‘v’, e.g. ‘v1’ or ‘v2’. In a version controlled table this can be many, and in a non-version-controlled
table there will only ever be one, with the key ‘v0’.

* **Returns:**
  Dict\[str, [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record)]

#### refetch\_record\_versions()

Refetches version information and all visible versions of the record for this user.

* **Return None:**

#### delete\_or\_withdraw\_record\_on\_server(withdrawal\_notes=None)

Deletes the record from the server, or withdraws it from a version-controlled table. Makes a Service Layer call.

* **Parameters:**
  **withdrawal\_notes** – Optional\[str], withdrawal revision notes.
* **Returns:**
  None

#### get\_available\_exporters(package=None, model=None, applicability\_tag=None)

Returns exporters available for this record filtered by package, model, and applicability tag value.

* **Parameters:**
  * **package** – str (Name of target FEA analysis package, for example ‘NX 10.0’ or ‘CATIA V5’)
  * **model** – str (Material model type, for example ‘Isotropic’ or ‘Linear, temperature-independent,
    isotropic, thermal, plastic’)
  * **applicability\_tag** – str (Tag that identifies the MI applications an exporter is intended to be used with,
    for example, ‘MIMaterialsGateway’ or ‘MIViewer’)
* **Returns:**
  List\[[`Exporter`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting#GRANTA_MIScriptingToolkit.granta.mi_exporters.Exporter)]

#### *property* data\_revision\_history

Data revision history for all attributes, indexed by attribute name.

* **Returns:**
  Dict\[str,
  [`DataRevisionHistory`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting#GRANTA_MIScriptingToolkit.granta.mi_meta_classes.DataRevisionHistory)]

#### move\_to(new\_parent)

Moves the record and all its descendants to a new parent.

The provided new parent must be a [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) of type [`RecordType.Folder`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/constants#GRANTA_MIScriptingToolkit.granta.mi_constants.RecordType.Folder) or
[`RecordType.Generic`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/constants#GRANTA_MIScriptingToolkit.granta.mi_constants.RecordType.Generic), or a [`Table`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/table#GRANTA_MIScriptingToolkit.granta.mi_tree_classes.Table) to move the record at the root of the table.

Some cached properties are cleared after the record has been moved, as they would be out-of-date:

* [`Record.pseudo_attributes`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.pseudo_attributes) and pseudo-attribute properties
* [`Record.path`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.path)
* [`Record.parent`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.parent)

They will be dynamically retrieved from the server on property access, or can be manually refreshed via the
following methods:

* [`Record.refetch_pseudo_attributes()`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.refetch_pseudo_attributes)
* [`Record.refresh_path()`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.refresh_path)
* [`Record.find_parent()`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.find_parent)
* [`Record.refresh_properties()`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.refresh_properties)

[`Record.children`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.children) is not cleared, because children are moved with the parent. Their internal state might
be outdated, and if necessary can be updated via the methods listed above.

`children` properties of the source and target parent are not cleared or updated. This is by design, to
prevent unnecessary updates in scripts performing a large number of record move operations.
To update the list of children of a table (after moving a child record from it or to it), use the method
[`Table.refetch_children()`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/table#GRANTA_MIScriptingToolkit.granta.mi_tree_classes.Table.refetch_children).
To update the list of children of a record (after moving a child record from it or to it), use the method
[`Record.refetch_children()`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.refetch_children).

* **Parameters:**
  **new\_parent** – [`Record`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) | [`Table`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/table#GRANTA_MIScriptingToolkit.granta.mi_tree_classes.Table)
* **Returns:**
  None

#### copy\_to(destination, record\_name=None, release=False)

Creates a copy of the record at the provided location.

Returns a record object that represents the newly created record. The resulting record is added to the
same subsets as the original record, and contains identical attribute values.

#### WARNING

Data validation rules, such as attribute value uniqueness, might prevent record copying.

* **Parameters:**
  * **destination** ([*Record*](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) *or* [*Table*](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/table.md#GRANTA_MIScriptingToolkit.granta.mi_tree_classes.Table)) – Location in the tree where to create the copy.
  * **record\_name** ([*str*](https://docs.python.org/3/library/stdtypes.html#str) *or* *None*) – Record name for the created record. By default, the copied record is created with the same
    name as the original record. If the destination already contains a record with an identical name, use this
    parameter to override the name.
  * **release** ([*bool*](https://docs.python.org/3/library/functions.html#bool)) – Whether to release the created record, defaults to `False`. The argument has no effect for
    records in tables that are not version-controlled.
* **Return type:**
  [Record](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record)

#### *property* version\_number

Record version number. This is set to None if the record is in a non version-controlled table.

Read-only property. This is only available for records that exist on the server.
This property is populated from a pseudo-attribute value and can be refreshed via [`refetch_pseudo_attributes()`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.refetch_pseudo_attributes).

* **Return type:**
  [int](https://docs.python.org/3/library/functions.html#int) | None

#### *property* is\_writable

Whether the current user has write permissions on the record.

Read-only property. This is only available for records that exist on the server.
This property is populated from a pseudo-attribute value and can be refreshed via [`refetch_pseudo_attributes()`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.refetch_pseudo_attributes).

* **Return type:**
  [bool](https://docs.python.org/3/library/functions.html#bool)

#### *property* parent\_record\_short\_name

Short name of the parent record.

If the record is at the root of the table, returns the name of the table.

Read-only property. This is only available for records that exist on the server.
This property is populated from a pseudo-attribute value and can be refreshed via [`refetch_pseudo_attributes()`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.refetch_pseudo_attributes).

* **Return type:**
  [str](https://docs.python.org/3/library/stdtypes.html#str)

#### *property* parent\_record\_name

Name of the parent record.

If the record is at the root of the table, returns the name of the table.

Read-only property. This is only available for records that exist on the server.
This property is populated from a pseudo-attribute value and can be refreshed via [`refetch_pseudo_attributes()`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.refetch_pseudo_attributes).

* **Return type:**
  [str](https://docs.python.org/3/library/stdtypes.html#str)

#### *property* parent\_record\_history\_identity

History identity of the parent record.

If the record is at the root of the table, returns the history identity of the table root node.

Read-only property. This is only available for records that exist on the server.
This property is populated from a pseudo-attribute value and can be refreshed via [`refetch_pseudo_attributes()`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.refetch_pseudo_attributes).

* **Return type:**
  [int](https://docs.python.org/3/library/functions.html#int)

#### *property* last\_modified\_on

Datetime of the last modification.

Read-only property. This is only available for records that exist on the server.
This property is populated from a pseudo-attribute value and can be refreshed via [`refetch_pseudo_attributes()`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.refetch_pseudo_attributes).

* **Return type:**
  [datetime.datetime](https://docs.python.org/3/library/datetime.html#datetime.datetime)

#### *property* last\_modified\_by

User who last modified the record.

Read-only property. This is only available for records that exist on the server.
This property is populated from a pseudo-attribute value and can be refreshed via [`refetch_pseudo_attributes()`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.refetch_pseudo_attributes).

* **Return type:**
  [str](https://docs.python.org/3/library/stdtypes.html#str)

#### *property* created\_on

Datetime of the record creation.

Read-only property. This is only available for records that exist on the server.
This property is populated from a pseudo-attribute value and can be refreshed via [`refetch_pseudo_attributes()`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.refetch_pseudo_attributes).

* **Return type:**
  [datetime.datetime](https://docs.python.org/3/library/datetime.html#datetime.datetime)

#### *property* created\_by

User who created the record.

Read-only property. This is only available for records that exist on the server.
This property is populated from a pseudo-attribute value and can be refreshed via [`refetch_pseudo_attributes()`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.refetch_pseudo_attributes).

* **Return type:**
  [str](https://docs.python.org/3/library/stdtypes.html#str)

#### *property* released\_on

Datetime of the record release.

Read-only property. This is only available for records that exist on the server.
This property is populated from a pseudo-attribute value and can be refreshed via [`refetch_pseudo_attributes()`](#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.refetch_pseudo_attributes).

* **Return type:**
  [datetime.datetime](https://docs.python.org/3/library/datetime.html#datetime.datetime)
