How to perform sequential number on API

I recently come across an API there i want to perform automation like in API

domain.com/item?=200

so i want like each time this increase like ex: domain.com/item?=201

till the end which we given example 200 to 300

i read previous threads on similar question but there isn’t any proper answer
Can i do this with function block if yes how or if with lolicode then whats the code

Thanks

If you’re trying to do this in a job, simply use the Range data pool.

If you’re trying to do this inside a config, then you can generate a list of numbers like this

List<string> numbers = Enumerable.Range(200, 300).Select(n => n.ToString()).ToList();

and then use a FOR EACH loop (look at the LoliCode Documentation on this forum).

1 Like