Skip to main content
Work with date, integer, and logical attribute types.

Connect to MI

Get a database and table.

Create a new record and path

Define a path in the table from a starting folder (in this case the top level folder) using path_from(). If the path does not exist, the required folders will be created. Specify end_node to create a new Record object at the end of the path with that name.
Previous cell output:

Edit the record’s attributes

Fetch date, integer and logical attributes for editing.

Date attributes

Use the value property to set the date value of the attribute with either a datetime object or a properly formatted string.

Integer attributes

Use the value property to set the integer value of the attribute.

Logical attributes

Use the value property to set the logical value of the attribute.

Write your changes to MI

First, specify the attributes on the record which you want to update on the server. Then write the changes to MI. The list of updated Record objects is returned.

Output the record’s attributes

Access the attribute values via the same properties you used to assign them.
Previous cell output: