Edit many records on a single API Call

  • 1
  • 1
  • Question
  • Updated 6 months ago
  • Answered
I'm using API_EditRecord in a loop in Javascript to edit several records in one button click.
But at some points I'm editing up to 1000 records, which means 1000 API_EditRecord calls, which is taking a considerable amount of time.

I was wondering if there's a way of editing several records in a single API call?

I was thinking on an API call where I would send a list of Records IDs and the fields to be edited, but I haven't found an end point for this yet.
Photo of Alberto Tablada

Alberto Tablada

  • 114 Points 100 badge 2x thumb

Posted 6 months ago

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

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 26,512 Points 20k badge 2x thumb
You have to use API_ImportFromCSV to do bulk import.  Looping over API_EditRecord many not only take a long time it may cause your browser to run out of available sockets and hang.
Photo of Alberto Tablada

Alberto Tablada

  • 114 Points 100 badge 2x thumb
It worked!

Thank You very much!