rq.iterationData object provides access to data from CSV or JSON files when running collections with the Collection Runner. Each iteration of the collection run receives a different row (CSV) or object (JSON) from the data file, allowing you to parameterize your requests dynamically.
This feature works only when you run a collection with an attached data file, which is supported exclusively in the Desktop App. If you run a single request or a collection without a data file, rq.iterationData remains undefined.
Methods
rq.iterationData.get(key)
Retrieves the value for a specific key from the current iteration’s data.
Parameters:
key(string): The name of the variable/column to retrieve
undefined if the key doesn’t exist
Example:
rq.iterationData.has(key)
Checks if a specific key exists in the current iteration’s data.
Parameters:
key(string): The name of the variable/column to check
true if the key exists, false otherwise
Example:

