How do you implement the API_ImportFromCSV in a javascript custom page using XMLHttpRequest?

  • 0
  • 1
  • Question
  • Updated 3 years ago
  • Answered
I'm trying to use the API_ImportFromCSV to add new records to a table from a list that is generated within a JavaScript custom page. Currently I'm using ajax and the API_AddRecord to add records from the JavaScript custom page. The issue is that I'm adding a few thousand records using the ajax call and its taking a very long time to complete. I'm hoping that I can place the records in a csv and then use one API call to add all of the records. The problem I'm running into is implementing the API_ImportFromCSV in the JS page. If anyone has an example of a solution they used, I would be very appreciative.
Photo of Evan


  • 0 Points

Posted 3 years ago

  • 0
  • 1
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 30,064 Points 20k badge 2x thumb
Search the Pastie Data base for API_ImportFromCSV:


Don't use  XML to build the request body as the API documentation suggests.