Entities enable you to use records from the UiPath Data Service, a centralized data modelling and storage service. Entities are available for import in Studio v2020.8 and up, and can be used in automation processes that collect, update, and pass data to other processes. All project types and templates within Studio and testing projects available in Studio Pro can be used for importing and working with such business objects.
A modern robot must be created in the Orchestrator instance on the tenant where the Data Service is enabled.
Click the Manage Entities ribbon button or drag an entity from the Resources panel and drop it on the Project panel. The Manage Entities window opens:
To find a specific entity, use the Search Entities bar and type the entity name, display name, or description.
Select an entity, hover over the Fields column to see all defined fields in the selected entity. The default namespace is the same as the project name. Once imported, the namespace can not be renamed. Click Save to import it in your project.
If you make any changes to the entity at the level of the tenant, use the Refresh button inside the Manage Entities window before actually importing it.
Imported entities are visible in the Project panel as objects part of your project.
The imported entities can now be used locally in your project as objects. If you want to perform CRUD operations on them in the Data Service as well, you need to install the UiPath.DataService.Activities pack.
After installing the UiPath.DataService.Activities pack, drag and drop an entity on top of a plus sign in the Designer panel to use the recommended activities from the pack.
Drag and drop an entity from the Project panel into the Variables or Arguments panel to create a variable or argument with the entity type.
After importing entities in your workflow, its namespace is imported as well and you can find it in the Imported Namespaces list, and it is available in the Referenced assemblies list:
All fields part of an imported entity are available as properties for the entity namespace. Thus, when working with entities the number of variables or arguments for managing data is reduced.
In the below example, the argument is of the type defined by the entity
Docs, it's properties visible in the Resources panel are the same as the fields defined in the entity and available as properties for the argument.
Check out the Using Entities in Projects page to see how to use them.
Updated 3 months ago