Level of Difficulty: Junior – Senior.

I recently started playing with integrating UiPath Apps, UiPath Data Services and UiPath Storage Buckets into my automations. It has been a tremendous amount of fun to see it all come together and how it all gels together. I had a few challenges creating records in UiPath Data Services Entities from UiPath but I managed to figure it out and it turns out to be quite simple.
Enabling UiPath Data Services
If you cannot see the Data Services icon on the navigation menu located on the left hand side of the screen, ensure that Data Services is enabled on your tenant by directing to Admin, expanding your tenant and selecting Data Services.

Create the Entity in UiPath Data Services
Navigate to the UiPath Data Services through the UiPath Automation Cloud and Create New Entity:

Complete the relevant fields before clicking Save at the bottom right hand side of the page:

Click on the entity and add the appropriate fields:

Now navigate to UiPath Studio to connect the data services and start populating the entity.
Populating the Entity From UiPath Studio
First thing’s first… Install the Data Services library by clicking on Manage Packages in the taskbar. Search for the library, install and save.

Before we can populate the entity, we first need to connect the entity to Studio. You can do this by clicking on Manage Entities in the taskbar – check the entity you want to add and click Save:

The entity will appear in under Entities in your Project Explorer:

Create a new variable in the Variables pane named ‘InstrumentEntity’. You will need to reassign the variable type to the Instrument entity. Click on Browse for more types in the variable type drop down:

Assign the default value of the newly created variable, InstrumentEntity, to a new instance of the Instrument entity:

Assign the attributes of the entity to values individually:

Drag the Create Entity Record activity below the assignment and configure the properties to create the record in the entity:

Run the file and test that the process populates the entity before further customising your process:

The sample code is available in this GitHub repo.