CSV decode
Options
Riaan Backer
Member ✭
Hi Xano team
I need you assistance please.
I am calling an external api to retrieve a file that is in csv format and I have used the csv decode filter for this which works fine. I know need to persist this data into a table that has the same columns and the header in the csv file. The problem that I am facing is that I dont have the name of the value/pair to be able to persist the data into the correct columns in the DB. Which filter would you recommend to get the data into the correct format
[filter.PNG]
[results.PNG]
I need you assistance please.
I am calling an external api to retrieve a file that is in csv format and I have used the csv decode filter for this which works fine. I know need to persist this data into a table that has the same columns and the header in the csv file. The problem that I am facing is that I dont have the name of the value/pair to be able to persist the data into the correct columns in the DB. Which filter would you recommend to get the data into the correct format
[filter.PNG]
[results.PNG]
Comments
-
- can you please assist?
-
- we have a filter create_object that is used for this - it allows you to provide an array of keys and an array of values and it will turn it into an object for you.
Give that a try and let us know if it works for you. -
Thanks Sean, do you have any documentation that you can refer me to. Cant seem to find anything on your docs on this
-
Hey here's an example to hopefully bring more clarity:
-
- thanks for this, its working.
I am uploading and processing 1000 records in a csv file and is taking around 45sec which is quite long. I would like you to have a look at the logic to see if there are any options to increase the processing speed. There will be instances where I will upload way more than a 1000 records. Please let me know what you need in order to have a look at the existing logic
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback