For a new very simple project, data will be made available (from someone else - exported from a website) as an Excel-file (or as CSV) with weekly updates.
I can create a Weweb-backend (table) with the structure if the Excel/CSV-file.
But is it possible to build an action (linked to a button in my (frontend-app)) to replace the existing rows in the Weweb-table with the rows of an updated Excel/csv-file?
Let’s say you have a csv file and a weweb with three columns: name, description, last_updated
On Monday, the values in the WeWeb table are [{name: “apple”, description: “fruit I don’t like”, last_updated: “2026-04-13”}, {name: “banana”, description: “much better”, last_updated: “2026-04-13”}]
On Tuesday the values in the csv are different and, when the user clicks on the button in WeWeb, you want the new values of the csv to be reflected in the WeWeb table, for example: [{name: “apple”, description: “actually they’re not so bad”, last_updated: “2026-04-14”}, {name: “banana”, description: “a little better”, last_updated: “2026-04-14”}]
new lines (records) from the csv-file must be added too
it’s (in my case) not necessary to really “sync” both the weweb-table and the csv-file. If the action-button could replace all records in the Weweb-table with all the records from the (new) csv-file that would be very good.
So on update, Weweb should check for every value of “Fietsnr” (row) in the csv-file if that value (record) already exists in the Weweb-table. I tried with a loop within a loop but without success.
File Upload
How do I link the uploaded csv-file (from my interface) to the function and api-workflow ?
If you’re struggling with this, I’d suggest a few options:
sharing a video on here showing us the exact steps you took, how things are setup and when you get the error. alternatively, you can share that in the support chat if you’d rather keep things private and want the team to be able to open the project directly
attending one of our Tuesday office hours to get in-person hands-on help
booking a private coaching session with someone from a WeWeb expert. Those are paid but can work wonders for quick upskilling
Can you share more about what you tried and where you’re stuck?
If you want to improve the flow a little bit and avoid deleting everything before recreating all records, here’s a video detailing how you can update single records even if you don’t have IDs in your CSV:
Let me know if it helps
PS: I’d recommend duplicating your workflow before attempting any change so you don’t lose what’s already working!