A static entity is an entity that has static data associated to it. This static data is then managed in design time and you use it directly in the business logic design of your application thus benefiting from strong typing. You can think of Static Entities as enums that are stored in the data base.

How to create a Static Entity:

In the eSpace tree, under the Data layer, right-click on the Entities folder.

The static entity's attributes define the structure of your static data, i.e., each instance of your static data is in fact a record of literal values. See how to manage static entity records.

When the static entity is created the following attributes are automatically created:

Static Entity Identifier

The Id attribute is like the entity identifier.

The identifier attribute is the only attribute of the static entity that can be set to be an auto-number.

Static Entity Label

Is a text attribute to accommodate the record's label, that is, the text that is displayed to the end-user.

Static Entity Order

This attribute is used to define the order by which the records are displayed to the end-user. By default, this attribute is an integer. Each new record has this attribute set to the actual maximum order plus one, that is, news records are added to the end of the record list.

To change the position of a record in the list, edit the order attribute of that record and set it with the value for the desired position.

Create your static entity from an existing entity. See how to convert an entity to a static entity.

You may create other attributes and edit your static entity properties to change which attributes are used as Identifier, Label or Order. See how.

Other relevant characteristics of the static entities are:

Static Entity Relationships

Static entities can only have relationships with other static entities. See how to create relationships.

Static Entity Actions

The OutSystems Platform manages the static data records persistency for you. Therefore, the only action available for the static entities is the Get<StaticEntity> action. See more about entity actions and managing static entity records.


Static entities aren't multi-tenant. Learn more about multi-tenant entities.

Static Entities Scope

Static entities are visible all over your eSpace in expressions.

See Also

Create Static Entity Attributes | Create Relationships | Manage Static Entity Records | Edit Static Entity Window | Convert an Entity to a Static Entity | About Entities | Manage Entity Records | About Multi-Tenant Entities | Static Entity Properties | Entity Properties | Find and Replace Entity Usages