Hello Bubble Community,
I am currently working on a project where I need to upload data from JSON/CSV files into a custom database structure that I have created in Bubble. The database, named CSVFILE
, contains the following fields:
USER_ID
DATA_ID
COLUMN_NAME
COLUMN_VALUE
DATA_TYPE
My goal is to import each row from the JSON/CSV files into this database in a specific format. For example, consider the following CSV table:
name, age, email
john, 30, john@example.com
jack, 36, jack@example.com
I would like each row from this table to be entered into my database in the following manner:
user_id, data_id, column_name, column_value, data_type
1, 01, name, john, text
1, 01, age, 30, number
1, 01, email, john@example.com, text
In this format, each cell from the CSV is transformed into a separate record in the database, with the appropriate data_type
(text, number, etc.) assigned based on the content.
I am seeking advice on the best way to achieve this in Bubble. Specifically, I am looking for guidance on:
- Efficiently importing data from CSV/JSON into the Bubble database.
- Dynamically assigning
data_type
based on the content of each cell. - Ensuring that each cell becomes a unique record in the database, structured as per my requirement.
Any insights, tips, or pointers to relevant resources or examples would be greatly appreciated. Thank you in advance for your help and support!
Best regards,
Netanel