Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

138
Vistas
Use variable out of array to resume in the same loop again

I'm trying to loop to 20k record in array, the problem is that the output of the response is only 200 lines. So I need to loop thru them to get all of them. Right now I managed to make a loop that 'loops' 100 times, but I need to parse the page number (and it's random strings) again in the request.

for (let i = 0; i < 100; i++) {

  var marker;

    const response = await client.request({
        "limit": 200,
        "marker": marker,
      })

    var marker = response['result']['marker']
}

But it's not parsing each time that value back in the request.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda