Sign Up
Loading...

CSV Import

Twidget enables seamless import of data from a CSV file into your database. Follow the steps below to successfully import a CSV file.

-

Step-by-Step Guide

  1. Initiate the Import:

    • Click on the Import button within the table toolbar.

    • Select Import from CSV from the dropdown.

  1. Open Import Dialog:

    • A new import dialog will appear.

    • Click on the Choose File button and select your CSV file from your local storage.

  1. Preview CSV Data:

    • After selecting your file, you will be able to preview the first 10 rows of your CSV.

    • This provides an opportunity to ensure your data looks correct before importing.

  1. Map CSV Columns to Table Fields:

    • The dialog will automatically map CSV column headings to table fields if there is a match.

    • Any headings that do not match an existing table field need to be manually mapped by selecting the appropriate table field.

    • Headings not mapped or duplicated will be highlighted in red.

Note: You cannot import fields that are of type List or Object.

  1. Create Missing Columns:

    • If your CSV contains columns not present in your database table, ensure to create these columns within your table before importing.
  2. Complete the Import:

    • Once all columns are appropriately mapped, click on the Import CSV button to finalize the import process.

Important Considerations

  • Automatic vs. Manual Mapping: While Twidget automatically maps matching column headings, ensure to review each mapping for accuracy.

  • Field Restrictions: Remember, List and Object fields cannot be imported. All other fields should be correctly mapped.

  • Pre-import Preparation: Verify and create any columns that are not currently existing in your table to make sure data is not lost during the import.

Related Topics

Database Tables

Database tables are essential components of your Twidget workspace, serving as the primary storage locations for your data. In Twidget, each table consists of rows and fields, meticulously designed for efficient data management and retrieval. Structure of Database Tables. - Rows: Each row in a datab...

External Database Connections

Read records from an existing external database without copying all of its data into Twidget. Add a connection. 1. Select your workspace and open Settings → Database Connections. 2. Select Add database connection. 3. Choose the provider: PostgreSQL, MySQL, SQL Server or Snowflake. 4. Enter a connect...

Save Changes Together

A Database Transaction groups database work so its changes complete together. If a command in the block fails, the block's changes are rolled back. Example: an order and its stock change. 1. Add Database Transaction to the workflow. 2. Inside Save changes together, add the supported commands that cr...

Database Basics

Twidget offers a comprehensive database solution for all workspaces. Here's an overview of how databases are structured and managed within Twidget: Database Structure. 1. Tables: A database may contain multiple tables. Each table stores data in a structured format. 2. Fields: Tables consist of field...

Database Change Triggers

Run an event automatically when a record is created, updated or deleted in a Twidget table. For example, send a welcome message after adding a customer, or refresh a summary when an order changes. Prepare the event. Create an event containing the steps you want to run. Add an Object input named `tri...