In Apex, how do I declare a CSV file, access it, pass its data to a method that inserts the contents in the database, and then close it?
Thanks!
7 réponses
I ran into something similar a while back when working with large CSV files and Salesforce. Sometimes native import tools just aren’t flexible enough, especially if you need scheduled or automated uploads. You can check out Skyvia and some information about it on this page. They’ve got a few options for importing and exporting data between Salesforce and CSV files, and you don’t have to deal with any complex setup.