Hi, Z Community! It's Liz, your Developer Community Manager. Today, I'm guiding you on how to import a CSV file that contains fields with a list of enum (enumerated) values. This process is particularly useful when you're managing datasets with categorical fields.
Before importing, ensure your Xano database table is properly configured:
In our example, the `Season` field is set to contain all possible seasons as enum values.
Navigate to your API endpoint setup for CSV import:
Important: When mapping the `Seasons` column to your `Season` field, apply the `Json decode` filter. This ensures the JSON-formatted list in your CSV translates correctly into Xano's enum list format.
Let's execute the import:
Upon successful execution, the records will be correctly imported into your Xano table, with enum fields accurately populated.
Navigate to your table to review the imported records. Each entry should reflect the accurate enumeration for the `Season` field based on your CSV data.
This tutorial should help you efficiently import CSV files with enum lists into your Xano database, ensuring data integrity and simplifying backend management for categorized information.
Looking forward to your feedback and questions! Let us know how this works for you in the comments, the community forum, or via the support link in Xano.
This transcript was AI generated to allow users to quickly answer technical questions about Xano.
I found it helpful
I need more support