# Importing a CSV file to a Hybrid Directory

If you have selected CSV as the data source for a Hybrid Directory, you can either choose to manually define the field structure, which has the same functionality as **Defining fields in an empty directory** described [previously](defining-fields-in-an-empty-directory). Or, you can also choose to define the field structure by importing from a CSV file, assuming the CSV file uses the first row to define the column headers. Please note, field names can only contain letters, numbers and underscore. \
\


<figure><img src="https://3978362562-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgKIYotuJ2G9zOHXIfg%2Fuploads%2FyjqoesKUw2hAuhmmQTNi%2Fimage.png?alt=media&#x26;token=1330cd40-3314-47e8-bb21-5fbed8b02598" alt=""><figcaption></figcaption></figure>

So that we know which fields to use to plot the asset position within a map, we need to know what type of data is being used, see [previous notes](defining-fields-in-an-empty-directory). Select the relevant option as shown below\
\


<figure><img src="https://3978362562-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgKIYotuJ2G9zOHXIfg%2Fuploads%2FuAJ3ZWYpRuumsbP1kOhd%2Fimage.png?alt=media&#x26;token=b18f8f6c-969c-4f55-ad34-b21b10acaba7" alt=""><figcaption></figcaption></figure>

Select **Choose file** to import the chosen CSV file\
\


<figure><img src="https://3978362562-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgKIYotuJ2G9zOHXIfg%2Fuploads%2FNcEYDaqzsGymN9hDKB2V%2Fimage.png?alt=media&#x26;token=d33d8c7d-3c91-4de7-861a-d89d1ff05fa7" alt=""><figcaption></figcaption></figure>

**Notes**\
\
If you are importing records from a CSV file, please see [previous notes](defining-fields-in-an-empty-directory) and guidance on how field names for the column headers within the CSV should be named, this is so we can plot records within a map
