---
title: "Gadget Import"
canonical: "https://onesaitplatform.refined.site/space/DOCT/3594420250/Gadget%20Import"
format: markdown
---
> Macro (toc)

> ℹ️ Available from versión 3.3.0 (Moonwalker)

# Description

This new gadget (implemented as a Gadget Template) allows you to import records from a file in csv or json format, to an entity.

![image](media://bda16219-6556-41c9-be78-8406a89b3f58)

# Template elements

Entity selector:

![image](media://b9ddacf5-6039-4d11-b51c-3a7926c3d670)

Download template: this button will open a pop up where you can download the template in csv or json format. This file will have the general scheme with the headers of the columns to take it as a model, and to add the records that will be imported to it. Besides, it adds an example to inform the format of each column.

![image](media://70a8a8c8-fd5d-4b1f-b99d-5fd706eb729b)

![image](media://36dce060-de84-42db-a1e4-7ce0113e94e9)

Element to upload the file: allows to click on it and select the file, or drag it in the marked box.

![image](media://e5d36fd9-4041-4ef6-8552-acb9476758fa)

Once the file is selected, it appears below this area. You only have to click on the Import button to import the data from the file.

![image](media://7a4bda49-cc1b-46f3-9e59-e5f3a1eb7d16)

In the event that the file is inconsistent, the errors will be displayed in a modal window.

![image](media://bbc88c09-b769-436c-a374-6589933e6974)


![image](media://449c5dea-4dab-4174-8591-68850785385f)

# Internationalization

The template is internationalized with the i18n standard implemented in the platform. There is a record under **Manage Internationalizations **where the internationalization is in English and Spanish. This applies to the elements of the template such as buttons, selectors, etc.

# Entity by parameter

The gadget allows defining a parameter by YRK to take it as the initial entity. With this, we manage that you cannot select another entity from the moment the dashboard is accessed.

![image](media://5f542122-8527-474a-9d65-e435e411a0d8)