Access data from CSV or JSON files during collection runs in Requestly API client scripts.
The rq.iterationData object reads the current row of a data file when you run a collection with the Collection Runner. Each iteration of the run gets the next row (CSV) or object (JSON) from the file, so the same requests run with different inputs.
rq.iterationData holds values only when you run a collection with a data file attached. When you send a single request, or run a collection without a data file, it is empty: get returns undefined and toObject() returns {}.
Methods
rq.iterationData.get(key)
Returns a value from the current row.Parameters:
key (string): The column (CSV) or property (JSON) name
Returns: The value, or undefined if the row has no such name. The value keeps the type the data file gave it: see Value types. A value you set earlier in the same script comes back as set stored it.Example:
// For a CSV with columns: city, temperatureconst city = rq.iterationData.get("city");const temp = rq.iterationData.get("temperature");console.log(`Weather in ${city}: ${temp}°C`);// Output: Weather in Vancouver: 10°C
rq.iterationData.set(key, value, type?)
Adds or changes a value in the current row, for the rest of this script only. See How values are saved.Parameters:
key (string): The name. It must not be empty.
value (any): The value. It is kept exactly as you pass it. null or undefined removes the value, the same as unset(key).
type (string, optional): The type to give the value before it is stored: "string", "number", "boolean", "array", "object" or "any". You can also pass { type }.
Example:
rq.iterationData.set("retry", true);
rq.iterationData.has(key)
Checks whether the current row has a value with this name.Parameters:
key (string): The column (CSV) or property (JSON) name
Returns:true if the row has the name, otherwise false.Example:
if (rq.iterationData.has("userId")) { const userId = rq.iterationData.get("userId"); console.log("User ID:", userId);} else { console.log("No user ID in this iteration");}
rq.iterationData.unset(key)
Removes a value from the current row, for the rest of this script only.Parameters:
key (string): The name. It must not be empty.
Example:
rq.iterationData.unset("password");
rq.iterationData.clear()
Removes every value from the current row, for the rest of this script only.Example:
rq.iterationData.clear();
rq.iterationData.toObject()
Returns the current row as one object of names and values.Returns: An object such as { city: "Vancouver", temperature: 10 }. Each value has the type get returns for it.Example:
Replaces each {{name}} in a template with the value of that name in the current row.Parameters:
template (string, object or array): Text containing {{name}} references. In an object or an array, every string inside is replaced.
Returns: The template with the references replaced. A value that is not text is written the way JavaScript’s String() writes it, so an array becomes a,b. A name the row does not have, and a dynamic variable such as {{$guid}}, stays as written. Each reference is replaced once, so a {{name}} inside a value stays as written. To replace names from every scope, use rq.variables.replaceIn.Example:
Returns a plain copy of rq.iterationData, the same as toJSON(), with every {{name}} inside it replaced. For a plain object of names and values, use toObject().Parameters:
scope (object, optional): The object whose replaceIn replaces the references. Pass rq.variables to replace names from every scope. Defaults to rq.iterationData.
overrides (array of objects, optional): Objects whose properties are copied onto the result, in order.
Returns: An object with id and values, plus mutations once you have called enableTracking().Example:
Copies the names and values of a plain object into the current row, for the rest of this script only. An existing name gets the new value, and a new name is added. Names the object does not have are kept. The changes are not recorded in mutations.Parameters:
object (object): The names and values to copy in
track (boolean, optional): Set to true to get back what changed
Returns: With track set to true, an object that maps each new name to "created" and each name whose value changed to "updated". A name whose value did not change is not listed. Without track, undefined.Example:
// "retries" is in the row and "region" is notconst changes = rq.iterationData.syncVariablesFrom({ region: "eu", retries: 5 }, true);console.log(changes); // { region: "created", retries: "updated" }
rq.iterationData.syncVariablesTo(object?)
Copies every value of the current row into a plain object.Parameters:
object (object, optional): The object to copy into. Any key in it that the row does not have is deleted from it. Without it, a new object is used.
Returns: The object, with one property per value. Each value has the type get returns for it.Example:
The current row, as a list.Each item is one value with key, value, type and disabled. Call the item’s get() to read its value, and its set(value) to change it.The list has these methods:
Read:one(key) returns the item with that name, and get(key) its value. has(key) checks whether the list holds that name. count() returns the number of items, all() an array of them, idx(index) the one at a position, and indexOf(key) its position, or -1. toObject() returns an object of names and values, and toJSON() an array of plain { key, value, type } items.
Loop:each(fn), map(fn), filter(fn), find(fn) and reduce(fn, initial) work like the array methods of the same name. fn receives each item and its position.
Change:add({ key, value, type, disabled }) adds an item. upsert({ key, value, type, disabled }) updates the item with that name, or adds it when there is none. remove(key) removes the item with that name, and remove(fn) removes every item fn returns true for. clear() removes every item.
Text:replace(text) replaces each {{name}} in text with the list’s value for that name.
Copy:syncFromObject(object, track?, prune?) works like syncVariablesFrom, and with prune set to true it also removes the names the object does not have. syncToObject(object?) works like syncVariablesTo.
Changes made through values last for the rest of this script only, like set, and are not recorded in mutations.Example:
A record of the set and unset calls this script made on rq.iterationData, in order. It exists only after you call enableTracking(); until then, mutations is undefined. clear() records an unset for each value it removes, and applyMutation records the call it makes. Changes made through values or syncVariablesFrom are not recorded.
stream (array): One entry per call: [key, value] for set and [key] for unset
compacted (object): The last change to each name, filled by compact() or by autoCompact
count(): Returns the number of recorded changes
compact(): Keeps only the last change to each name, moving the entries from stream into compacted
applyOn(target): Makes the recorded changes again on another object, such as rq.variables
Starts recording set and unset calls in a new mutations record. rq.iterationData does not record changes until you call this. Calling it again while recording does nothing. After disableTracking(), it starts a new, empty record.Parameters:
options (object, optional): { autoCompact: true } keeps only the last change to each name, in mutations.compacted
Adds a list of variables to read when the current row has no value with that name. get, has, toObject and replaceIn read the lists in the order you add them. Writes still go to the current row only.Parameters:
list: Another object’s values, such as rq.environment.values
Example:
rq.iterationData.addLayer(rq.environment.values);const region = rq.iterationData.get("region"); // the environment's value when the row has none
How values are saved
Values in rq.iterationData are never saved. set, unset, clear and the other methods that change the row affect the rest of the current script only. The data file does not change, and every later script, even the post-response script of the same request, reads the row as the data file holds it.To pass a value to the scripts that run after this one, write it to another scope, such as rq.variables:
rq.variables.set("retry", true);
Value types
Values keep the type the data file gave them:
JSON file: Numbers, booleans, null, objects and arrays come back as they are written.
CSV file: A cell that holds a number, or true or false, comes back as a number or a boolean. Every other cell comes back as text, and an empty cell as "".
// Post-response scriptconst expectedStatus = rq.iterationData.get("expectedStatus");const actualStatus = rq.response.code;rq.test(`Status code matches expected (${expectedStatus})`, function() { // A number in the data file is already a number rq.expect(actualStatus).to.equal(expectedStatus);});
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Requestly","description":"Design, build and test APIs in one place. Docs for the Requestly API Client: collections, environments, scripting, and Git-native sync.","colors":{"primary":"#2563eb","light":"#3b82f6","dark":"#1d4ed8"},"logo":{"light":"https://mintcdn.com/requestly/1os8lH_VUE6QydeH/images/logo-light.webp?fit=max\u0026auto=format\u0026n=1os8lH_VUE6QydeH\u0026q=85\u0026s=f4d79e60313d7b955f46e0ad446bc80d","dark":"https://mintcdn.com/requestly/1os8lH_VUE6QydeH/images/logo-dark.webp?fit=max\u0026auto=format\u0026n=1os8lH_VUE6QydeH\u0026q=85\u0026s=a20b66ddb959d92b66960804d0615fd7","href":"https://docs.requestly.com"},"favicon":"https://mintcdn.com/requestly/Z9psaKI2OUaqbNe1/images/favicon.webp?fit=max\u0026auto=format\u0026n=Z9psaKI2OUaqbNe1\u0026q=85\u0026s=7814a541aed21e1e617f27baa7b601eb","navbar":{"primary":{"type":"button","label":"Download","href":"https://requestly.com/downloads"}},"footer":{"socials":{"x":"https://x.com/requestlyio","linkedin":"https://linkedin.com/company/requestly","github":"https://github.com/requestly/requestly","youtube":"https://youtube.com/@requestly"},"links":[{"header":"Product","items":[{"label":"Features","href":"https://requestly.com"},{"label":"Pricing","href":"https://app.requestly.io/pricing"},{"label":"Chrome Extension","href":"https://rqst.ly/chrome-store"},{"label":"Desktop App","href":"https://requestly.com/desktop"}]},{"header":"Resources","items":[{"label":"Blog","href":"https://requestly.com/blog"},{"label":"Support","href":"https://requestly.com/contact-us"}]},{"header":"Company","items":[{"label":"About","href":"https://www.browserstack.com/company"},{"label":"Privacy Policy","href":"https://requestly.com/privacy"},{"label":"Terms of Service","href":"https://requestly.com/terms"}]}]},"search":{"prompt":"Search Requestly docs..."},"seo":{"metatags":{"og:type":"documentation","og:site_name":"Requestly Documentation","twitter:card":"summary_large_image","twitter:site":"@requestlyio"},"indexing":"navigable"},"integrations":{"telemetry":{"enabled":true},"cookies":{"key":"rq_consent_tracking","value":"granted"}},"errors":{"404":{"redirect":true,"title":"Page Not Found","description":"The page you're looking for doesn't exist. Try searching or browse our documentation sections."}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"requestly","hasAudioNarration":false,"actualSubdomain":"requestly","customDomains":["docs.requestly.com"],"gitSource":{"type":"github","owner":"requestly","repo":"requestly-api-client","deployBranch":"staging","contentDirectory":"documentation","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":false,"issues":false},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af5c10d033e137dc78baf12","clientVersion":"0.0.4270","searchFilterCounts":[{"language":"default","tag":"API Client","count":116},{"language":"default","tag":"Getting Started","count":86},{"language":"default","tag":"Sending Requests","count":23},{"language":"default","tag":"Requestly Scripts Reference","count":17},{"language":"default","tag":"Variables \u0026 Environments","count":12},{"language":"default","tag":"Git","count":10},{"language":"default","tag":"Account \u0026 Administration","count":9},{"language":"default","tag":"Import \u0026 Export","count":9},{"language":"default","tag":"Mock Server","count":8},{"language":"default","tag":"Authorization","count":8}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"changelog-layout.css","content":":has(>#content-container):has(#content[data-page-title=\"Changelogs\"]){max-width:1376px!important;margin-left:auto!important;margin-right:auto!important;padding-left:0!important;padding-right:0!important}@media (max-width: 1471px){:has(>#content-container):has(#content[data-page-title=\"Changelogs\"]){margin-left:5%!important;margin-right:5%!important}}"}]}
{"page":{"pagePath":"api-client/rq-api-reference/rq-iteration-data","slug":"/api-client/rq-api-reference/rq-iteration-data","pageMetadata":{"title":"rq.iterationData (Iteration data)","label":"rq.iterationData (Iteration data)","slug":"rq-iteration-data","description":"Access data from CSV or JSON files during collection runs in Requestly API client scripts.","seoDescription":"Access data from CSV or JSON files during collection runs in Requestly API client scripts.","visibility":"PUBLIC","href":"/api-client/rq-api-reference/rq-iteration-data"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Access data from CSV or JSON files during collection runs in Requestly API client scripts.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`rq.iterationData`}),` object reads the current row of a `,_jsx(_components.a,{href:`/api-client/collection-runner-data-file`,children:`data file`}),` when you run a collection with the Collection Runner. Each iteration of the run gets the next row (CSV) or object (JSON) from the file, so the same requests run with different inputs.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`rq.iterationData`}),` holds values only when you run a collection with a data file attached. When you send a single request, or run a collection without a data file, it is empty: `,_jsx(_components.code,{children:`get`}),` returns `,_jsx(_components.code,{children:`undefined`}),` and `,_jsx(_components.code,{children:`toObject()`}),` returns `,_jsx(_components.code,{children:`{}`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`methods`,children:`Methods`}),`\n`,_jsx(Heading,{level:`3`,id:`rq-iterationdata-get-key`,children:_jsx(_components.code,{children:`rq.iterationData.get(key)`})}),`\n`,_jsx(_components.p,{children:`Returns a value from the current row.`}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Parameters:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`key`}),` (string): The column (CSV) or property (JSON) name`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Returns:`}),` The value, or `,_jsx(_components.code,{children:`undefined`}),` if the row has no such name. The value keeps the type the data file gave it: see `,_jsx(_components.a,{href:`#value-types`,children:`Value types`}),`. A value you set earlier in the same script comes back as `,_jsx(_components.code,{children:`set`}),` stored it.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// For a CSV with columns: city, temperature`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` city = rq.iterationData.get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"city\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` temp = rq.iterationData.get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"temperature\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`console.log(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`Weather in ${city}: ${temp}°C`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Output: Weather in Vancouver: 10°C`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`rq-iterationdata-set-key-value-type`,children:_jsx(_components.code,{children:`rq.iterationData.set(key, value, type?)`})}),`\n`,_jsxs(_components.p,{children:[`Adds or changes a value in the current row, for the rest of this script only. See `,_jsx(_components.a,{href:`#how-values-are-saved`,children:`How values are saved`}),`.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Parameters:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`key`}),` (string): The name. It must not be empty.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`value`}),` (any): The value. It is kept exactly as you pass it. `,_jsx(_components.code,{children:`null`}),` or `,_jsx(_components.code,{children:`undefined`}),` removes the value, the same as `,_jsx(_components.code,{children:`unset(key)`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`type`}),` (string, optional): The type to give the value before it is stored: `,_jsx(_components.code,{children:`\"string\"`}),`, `,_jsx(_components.code,{children:`\"number\"`}),`, `,_jsx(_components.code,{children:`\"boolean\"`}),`, `,_jsx(_components.code,{children:`\"array\"`}),`, `,_jsx(_components.code,{children:`\"object\"`}),` or `,_jsx(_components.code,{children:`\"any\"`}),`. You can also pass `,_jsx(_components.code,{children:`{ type }`}),`.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`rq.iterationData.set(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"retry\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`rq-iterationdata-has-key`,children:_jsx(_components.code,{children:`rq.iterationData.has(key)`})}),`\n`,_jsx(_components.p,{children:`Checks whether the current row has a value with this name.`}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Parameters:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`key`}),` (string): The column (CSV) or property (JSON) name`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Returns:`}),` `,_jsx(_components.code,{children:`true`}),` if the row has the name, otherwise `,_jsx(_components.code,{children:`false`}),`.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (rq.iterationData.has(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"userId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` userId = rq.iterationData.get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"userId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` console.log(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"User ID:\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, userId);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`} `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`else`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` console.log(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"No user ID in this iteration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`rq-iterationdata-unset-key`,children:_jsx(_components.code,{children:`rq.iterationData.unset(key)`})}),`\n`,_jsx(_components.p,{children:`Removes a value from the current row, for the rest of this script only.`}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Parameters:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`key`}),` (string): The name. It must not be empty.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`rq.iterationData.unset(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"password\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`rq-iterationdata-clear`,children:_jsx(_components.code,{children:`rq.iterationData.clear()`})}),`\n`,_jsx(_components.p,{children:`Removes every value from the current row, for the rest of this script only.`}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`1`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`rq.iterationData.clear();`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`rq-iterationdata-toobject`,children:_jsx(_components.code,{children:`rq.iterationData.toObject()`})}),`\n`,_jsx(_components.p,{children:`Returns the current row as one object of names and values.`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Returns:`}),` An object such as `,_jsx(_components.code,{children:`{ city: \"Vancouver\", temperature: 10 }`}),`. Each value has the type `,_jsx(_components.code,{children:`get`}),` returns for it.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` allData = rq.iterationData.toObject();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`console.log(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Current iteration data:\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, allData);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Output: Current iteration data: { city: \"Vancouver\", temperature: 10 }`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`rq-iterationdata-replacein-template`,children:_jsx(_components.code,{children:`rq.iterationData.replaceIn(template)`})}),`\n`,_jsxs(_components.p,{children:[`Replaces each `,_jsx(_components.code,{children:`{{name}}`}),` in a template with the value of that name in the current row.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Parameters:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`template`}),` (string, object or array): Text containing `,_jsx(_components.code,{children:`{{name}}`}),` references. In an object or an array, every string inside is replaced.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Returns:`}),` The template with the references replaced. A value that is not text is written the way JavaScript’s `,_jsx(_components.code,{children:`String()`}),` writes it, so an array becomes `,_jsx(_components.code,{children:`a,b`}),`. A name the row does not have, and a dynamic variable such as `,_jsx(_components.code,{children:`{{$guid}}`}),`, stays as written. Each reference is replaced once, so a `,_jsx(_components.code,{children:`{{name}}`}),` inside a value stays as written. To replace names from every scope, use `,_jsx(_components.a,{href:`/api-client/rq-api-reference/rq-variables`,children:_jsx(_components.code,{children:`rq.variables.replaceIn`})}),`.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` path = rq.iterationData.replaceIn(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"/weather/{{city}}\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`rq-iterationdata-toobjectresolved-scope-overrides`,children:_jsx(_components.code,{children:`rq.iterationData.toObjectResolved(scope?, overrides?)`})}),`\n`,_jsxs(_components.p,{children:[`Returns a plain copy of `,_jsx(_components.code,{children:`rq.iterationData`}),`, the same as `,_jsx(_components.code,{children:`toJSON()`}),`, with every `,_jsx(_components.code,{children:`{{name}}`}),` inside it replaced. For a plain object of names and values, use `,_jsx(_components.code,{children:`toObject()`}),`.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Parameters:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`scope`}),` (object, optional): The object whose `,_jsx(_components.code,{children:`replaceIn`}),` replaces the references. Pass `,_jsx(_components.code,{children:`rq.variables`}),` to replace names from every scope. Defaults to `,_jsx(_components.code,{children:`rq.iterationData`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`overrides`}),` (array of objects, optional): Objects whose properties are copied onto the result, in order.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Returns:`}),` An object with `,_jsx(_components.code,{children:`id`}),` and `,_jsx(_components.code,{children:`values`}),`, plus `,_jsx(_components.code,{children:`mutations`}),` once you have called `,_jsx(_components.code,{children:`enableTracking()`}),`.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` resolved = rq.iterationData.toObjectResolved(rq.variables);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`resolved.values.forEach((item) => console.log(item.key, item.value));`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`rq-iterationdata-tojson`,children:_jsx(_components.code,{children:`rq.iterationData.toJSON()`})}),`\n`,_jsxs(_components.p,{children:[`Returns a plain copy of `,_jsx(_components.code,{children:`rq.iterationData`}),`. `,_jsx(_components.code,{children:`JSON.stringify(rq.iterationData)`}),` uses it.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Returns:`}),` An object with:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`id`}),`: The same as `,_jsx(_components.code,{children:`rq.iterationData.id`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`values`}),`: The current row, as an array of `,_jsx(_components.code,{children:`{ key, value, type }`}),` items`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`mutations`}),`: The changes this script recorded, as `,_jsx(_components.code,{children:`{ stream, compacted, autoCompact }`}),`, once you have called `,_jsx(_components.code,{children:`enableTracking()`})]}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`1`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`console.log(JSON.stringify(rq.iterationData));`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`rq-iterationdata-syncvariablesfrom-object-track`,children:_jsx(_components.code,{children:`rq.iterationData.syncVariablesFrom(object, track?)`})}),`\n`,_jsxs(_components.p,{children:[`Copies the names and values of a plain object into the current row, for the rest of this script only. An existing name gets the new value, and a new name is added. Names the object does not have are kept. The changes are not recorded in `,_jsx(_components.code,{children:`mutations`}),`.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Parameters:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`object`}),` (object): The names and values to copy in`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`track`}),` (boolean, optional): Set to `,_jsx(_components.code,{children:`true`}),` to get back what changed`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Returns:`}),` With `,_jsx(_components.code,{children:`track`}),` set to `,_jsx(_components.code,{children:`true`}),`, an object that maps each new name to `,_jsx(_components.code,{children:`\"created\"`}),` and each name whose value changed to `,_jsx(_components.code,{children:`\"updated\"`}),`. A name whose value did not change is not listed. Without `,_jsx(_components.code,{children:`track`}),`, `,_jsx(_components.code,{children:`undefined`}),`.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// \"retries\" is in the row and \"region\" is not`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` changes = rq.iterationData.syncVariablesFrom({ region: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"eu\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, retries: 5 }, `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`console.log(changes); `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// { region: \"created\", retries: \"updated\" }`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`rq-iterationdata-syncvariablesto-object`,children:_jsx(_components.code,{children:`rq.iterationData.syncVariablesTo(object?)`})}),`\n`,_jsx(_components.p,{children:`Copies every value of the current row into a plain object.`}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Parameters:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`object`}),` (object, optional): The object to copy into. Any key in it that the row does not have is deleted from it. Without it, a new object is used.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Returns:`}),` The object, with one property per value. Each value has the type `,_jsx(_components.code,{children:`get`}),` returns for it.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` copy = rq.iterationData.syncVariablesTo();`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`console.log(copy.city);`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`rq-iterationdata-values`,children:_jsx(_components.code,{children:`rq.iterationData.values`})}),`\n`,_jsx(_components.p,{children:`The current row, as a list.`}),`\n`,_jsxs(_components.p,{children:[`Each item is one value with `,_jsx(_components.code,{children:`key`}),`, `,_jsx(_components.code,{children:`value`}),`, `,_jsx(_components.code,{children:`type`}),` and `,_jsx(_components.code,{children:`disabled`}),`. Call the item’s `,_jsx(_components.code,{children:`get()`}),` to read its value, and its `,_jsx(_components.code,{children:`set(value)`}),` to change it.`]}),`\n`,_jsx(_components.p,{children:`The list has these methods:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Read:`}),` `,_jsx(_components.code,{children:`one(key)`}),` returns the item with that name, and `,_jsx(_components.code,{children:`get(key)`}),` its value. `,_jsx(_components.code,{children:`has(key)`}),` checks whether the list holds that name. `,_jsx(_components.code,{children:`count()`}),` returns the number of items, `,_jsx(_components.code,{children:`all()`}),` an array of them, `,_jsx(_components.code,{children:`idx(index)`}),` the one at a position, and `,_jsx(_components.code,{children:`indexOf(key)`}),` its position, or `,_jsx(_components.code,{children:`-1`}),`. `,_jsx(_components.code,{children:`toObject()`}),` returns an object of names and values, and `,_jsx(_components.code,{children:`toJSON()`}),` an array of plain `,_jsx(_components.code,{children:`{ key, value, type }`}),` items.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Loop:`}),` `,_jsx(_components.code,{children:`each(fn)`}),`, `,_jsx(_components.code,{children:`map(fn)`}),`, `,_jsx(_components.code,{children:`filter(fn)`}),`, `,_jsx(_components.code,{children:`find(fn)`}),` and `,_jsx(_components.code,{children:`reduce(fn, initial)`}),` work like the array methods of the same name. `,_jsx(_components.code,{children:`fn`}),` receives each item and its position.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Change:`}),` `,_jsx(_components.code,{children:`add({ key, value, type, disabled })`}),` adds an item. `,_jsx(_components.code,{children:`upsert({ key, value, type, disabled })`}),` updates the item with that name, or adds it when there is none. `,_jsx(_components.code,{children:`remove(key)`}),` removes the item with that name, and `,_jsx(_components.code,{children:`remove(fn)`}),` removes every item `,_jsx(_components.code,{children:`fn`}),` returns `,_jsx(_components.code,{children:`true`}),` for. `,_jsx(_components.code,{children:`clear()`}),` removes every item.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Text:`}),` `,_jsx(_components.code,{children:`replace(text)`}),` replaces each `,_jsx(_components.code,{children:`{{name}}`}),` in `,_jsx(_components.code,{children:`text`}),` with the list’s value for that name.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Copy:`}),` `,_jsx(_components.code,{children:`syncFromObject(object, track?, prune?)`}),` works like `,_jsx(_components.code,{children:`syncVariablesFrom`}),`, and with `,_jsx(_components.code,{children:`prune`}),` set to `,_jsx(_components.code,{children:`true`}),` it also removes the names the object does not have. `,_jsx(_components.code,{children:`syncToObject(object?)`}),` works like `,_jsx(_components.code,{children:`syncVariablesTo`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Changes made through `,_jsx(_components.code,{children:`values`}),` last for the rest of this script only, like `,_jsx(_components.code,{children:`set`}),`, and are not recorded in `,_jsx(_components.code,{children:`mutations`}),`.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`rq.iterationData.values.each((item) => {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` console.log(item.key, item.get());`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` columns = rq.iterationData.values.count();`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`rq-iterationdata-id`,children:_jsx(_components.code,{children:`rq.iterationData.id`})}),`\n`,_jsx(_components.p,{children:`A random id, new each time a script runs.`}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`1`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`console.log(rq.iterationData.id);`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`rq-iterationdata-mutations`,children:_jsx(_components.code,{children:`rq.iterationData.mutations`})}),`\n`,_jsxs(_components.p,{children:[`A record of the `,_jsx(_components.code,{children:`set`}),` and `,_jsx(_components.code,{children:`unset`}),` calls this script made on `,_jsx(_components.code,{children:`rq.iterationData`}),`, in order. It exists only after you call `,_jsx(_components.code,{children:`enableTracking()`}),`; until then, `,_jsx(_components.code,{children:`mutations`}),` is `,_jsx(_components.code,{children:`undefined`}),`. `,_jsx(_components.code,{children:`clear()`}),` records an `,_jsx(_components.code,{children:`unset`}),` for each value it removes, and `,_jsx(_components.code,{children:`applyMutation`}),` records the call it makes. Changes made through `,_jsx(_components.code,{children:`values`}),` or `,_jsx(_components.code,{children:`syncVariablesFrom`}),` are not recorded.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`stream`}),` (array): One entry per call: `,_jsx(_components.code,{children:`[key, value]`}),` for `,_jsx(_components.code,{children:`set`}),` and `,_jsx(_components.code,{children:`[key]`}),` for `,_jsx(_components.code,{children:`unset`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`compacted`}),` (object): The last change to each name, filled by `,_jsx(_components.code,{children:`compact()`}),` or by `,_jsx(_components.code,{children:`autoCompact`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`count()`}),`: Returns the number of recorded changes`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`compact()`}),`: Keeps only the last change to each name, moving the entries from `,_jsx(_components.code,{children:`stream`}),` into `,_jsx(_components.code,{children:`compacted`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`applyOn(target)`}),`: Makes the recorded changes again on another object, such as `,_jsx(_components.code,{children:`rq.variables`})]}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`rq.iterationData.enableTracking();`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`rq.iterationData.set(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"retry\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`rq.iterationData.unset(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"password\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`console.log(rq.iterationData.mutations.stream); `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// [[\"retry\", true], [\"password\"]]`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`rq-iterationdata-enabletracking-options`,children:_jsx(_components.code,{children:`rq.iterationData.enableTracking(options?)`})}),`\n`,_jsxs(_components.p,{children:[`Starts recording `,_jsx(_components.code,{children:`set`}),` and `,_jsx(_components.code,{children:`unset`}),` calls in a new `,_jsx(_components.code,{children:`mutations`}),` record. `,_jsx(_components.code,{children:`rq.iterationData`}),` does not record changes until you call this. Calling it again while recording does nothing. After `,_jsx(_components.code,{children:`disableTracking()`}),`, it starts a new, empty record.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Parameters:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`options`}),` (object, optional): `,_jsx(_components.code,{children:`{ autoCompact: true }`}),` keeps only the last change to each name, in `,_jsx(_components.code,{children:`mutations.compacted`})]}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`rq.iterationData.enableTracking({ autoCompact: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`rq.iterationData.set(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"page\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, 1);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`rq.iterationData.set(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"page\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, 2);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`console.log(rq.iterationData.mutations.compacted); `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// { page: [\"page\", 2] }`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`rq-iterationdata-disabletracking`,children:_jsx(_components.code,{children:`rq.iterationData.disableTracking()`})}),`\n`,_jsxs(_components.p,{children:[`Stops recording changes in `,_jsx(_components.code,{children:`mutations`}),`. What was already recorded stays in `,_jsx(_components.code,{children:`mutations`}),`.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`1`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`rq.iterationData.disableTracking();`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`rq-iterationdata-applymutation-instruction-key-value`,children:_jsx(_components.code,{children:`rq.iterationData.applyMutation(instruction, key, value?)`})}),`\n`,_jsxs(_components.p,{children:[`Makes one change, named by `,_jsx(_components.code,{children:`instruction`}),`: `,_jsx(_components.code,{children:`\"set\"`}),` calls `,_jsx(_components.code,{children:`set(key, value)`}),` and `,_jsx(_components.code,{children:`\"unset\"`}),` calls `,_jsx(_components.code,{children:`unset(key)`}),`. Any other instruction does nothing.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Parameters:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`instruction`}),` (string): `,_jsx(_components.code,{children:`\"set\"`}),` or `,_jsx(_components.code,{children:`\"unset\"`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`key`}),` (string): The name`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`value`}),` (any, optional): The value, for `,_jsx(_components.code,{children:`\"set\"`})]}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`rq.iterationData.applyMutation(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"set\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"region\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"eu\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`rq-iterationdata-addlayer-list`,children:_jsx(_components.code,{children:`rq.iterationData.addLayer(list)`})}),`\n`,_jsxs(_components.p,{children:[`Adds a list of variables to read when the current row has no value with that name. `,_jsx(_components.code,{children:`get`}),`, `,_jsx(_components.code,{children:`has`}),`, `,_jsx(_components.code,{children:`toObject`}),` and `,_jsx(_components.code,{children:`replaceIn`}),` read the lists in the order you add them. Writes still go to the current row only.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Parameters:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`list`}),`: Another object’s `,_jsx(_components.code,{children:`values`}),`, such as `,_jsx(_components.code,{children:`rq.environment.values`})]}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`rq.iterationData.addLayer(rq.environment.values);`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` region = rq.iterationData.get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"region\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`); `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// the environment's value when the row has none`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`how-values-are-saved`,children:`How values are saved`}),`\n`,_jsxs(_components.p,{children:[`Values in `,_jsx(_components.code,{children:`rq.iterationData`}),` are never saved. `,_jsx(_components.code,{children:`set`}),`, `,_jsx(_components.code,{children:`unset`}),`, `,_jsx(_components.code,{children:`clear`}),` and the other methods that change the row affect the rest of the current script only. The data file does not change, and every later script, even the post-response script of the same request, reads the row as the data file holds it.`]}),`\n`,_jsxs(_components.p,{children:[`To pass a value to the scripts that run after this one, write it to another scope, such as `,_jsx(_components.a,{href:`/api-client/rq-api-reference/rq-variables`,children:_jsx(_components.code,{children:`rq.variables`})}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`rq.variables.set(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"retry\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`value-types`,children:`Value types`}),`\n`,_jsx(_components.p,{children:`Values keep the type the data file gave them:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`JSON file:`}),` Numbers, booleans, `,_jsx(_components.code,{children:`null`}),`, objects and arrays come back as they are written.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`CSV file:`}),` A cell that holds a number, or `,_jsx(_components.code,{children:`true`}),` or `,_jsx(_components.code,{children:`false`}),`, comes back as a number or a boolean. Every other cell comes back as text, and an empty cell as `,_jsx(_components.code,{children:`\"\"`}),`.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`common-use-cases`,children:`Common Use Cases`}),`\n`,_jsx(Heading,{level:`3`,id:`conditional-logic-based-on-data`,children:`Conditional Logic Based on Data`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`14`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Pre-request script`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` userType = rq.iterationData.get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"userType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (userType === `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"admin\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` rq.request.headers.add({`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` key: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"X-Admin-Token\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` value: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"admin-secret-token\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`} `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`else`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` rq.request.headers.add({`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` key: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"X-User-Token\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` value: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user-token\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`validating-response-against-expected-data`,children:`Validating Response Against Expected Data`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Post-response script`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` expectedStatus = rq.iterationData.get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"expectedStatus\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` actualStatus = rq.response.code;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`rq.test(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`Status code matches expected (${expectedStatus})`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // A number in the data file is already a number`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` rq.expect(actualStatus).to.equal(expectedStatus);`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`data-file-format-examples`,children:`Data File Format Examples`}),`\n`,_jsx(Heading,{level:`3`,id:`csv-format`,children:`CSV Format`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`csv`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`csv`,children:_jsxs(_components.code,{language:`csv`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`city,`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`temperature,`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`humidity`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Vancouver,`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`10,`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`75`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Austin,`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`24,`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`60`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`London,`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`12,`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`80`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Accessing in script:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` city = rq.iterationData.get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"city\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`); `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// \"Vancouver\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` temp = rq.iterationData.get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"temperature\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`); `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// 10`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` humidity = rq.iterationData.get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"humidity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`); `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// 75`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`json-format`,children:`JSON Format`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"user\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Ada\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"admin\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"ids\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`], `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"active\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"user\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Lin\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"viewer\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"ids\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`3`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`], `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"active\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Accessing in script:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` user = rq.iterationData.get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`); `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// { name: \"Ada\", role: \"admin\" }`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ids = rq.iterationData.get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ids\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`); `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// [1, 2]`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` active = rq.iterationData.get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"active\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`); `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// true`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`console.log(user.role); `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// \"admin\"`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`related-documentation`,children:`Related Documentation`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/api-client/collection-runner-data-file`,children:`Run Collections with Custom Data`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/api-client/scripts`,children:`Pre-request \u0026 Post-response Scripts`})}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/api-client/rq-api-reference/rq-variables`,children:`rq.variables Object`}),` (reads every scope)`]}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/api-client/rq-api-reference/rq-info`,children:`rq.info Object`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/api-client/rq-api-reference/rq-environment`,children:`rq.environment Object`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/api-client/rq-api-reference/rq-collection-variables`,children:`rq.collectionVariables Object`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/api-client/rq-api-reference/rq-globals`,children:`rq.globals Object`})}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"rq.iterationData (Iteration data)","label":"rq.iterationData (Iteration data)","slug":"rq-iteration-data","description":"Access data from CSV or JSON files during collection runs in Requestly API client scripts.","seoDescription":"Access data from CSV or JSON files during collection runs in Requestly API client scripts.","visibility":"PUBLIC","href":"/api-client/rq-api-reference/rq-iteration-data"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Methods","slug":"methods","depth":2,"children":[{"title":"rq.iterationData.get(key)","slug":"rq-iterationdata-get-key","depth":3,"children":[]},{"title":"rq.iterationData.set(key, value, type?)","slug":"rq-iterationdata-set-key-value-type","depth":3,"children":[]},{"title":"rq.iterationData.has(key)","slug":"rq-iterationdata-has-key","depth":3,"children":[]},{"title":"rq.iterationData.unset(key)","slug":"rq-iterationdata-unset-key","depth":3,"children":[]},{"title":"rq.iterationData.clear()","slug":"rq-iterationdata-clear","depth":3,"children":[]},{"title":"rq.iterationData.toObject()","slug":"rq-iterationdata-toobject","depth":3,"children":[]},{"title":"rq.iterationData.replaceIn(template)","slug":"rq-iterationdata-replacein-template","depth":3,"children":[]},{"title":"rq.iterationData.toObjectResolved(scope?, overrides?)","slug":"rq-iterationdata-toobjectresolved-scope-overrides","depth":3,"children":[]},{"title":"rq.iterationData.toJSON()","slug":"rq-iterationdata-tojson","depth":3,"children":[]},{"title":"rq.iterationData.syncVariablesFrom(object, track?)","slug":"rq-iterationdata-syncvariablesfrom-object-track","depth":3,"children":[]},{"title":"rq.iterationData.syncVariablesTo(object?)","slug":"rq-iterationdata-syncvariablesto-object","depth":3,"children":[]},{"title":"rq.iterationData.values","slug":"rq-iterationdata-values","depth":3,"children":[]},{"title":"rq.iterationData.id","slug":"rq-iterationdata-id","depth":3,"children":[]},{"title":"rq.iterationData.mutations","slug":"rq-iterationdata-mutations","depth":3,"children":[]},{"title":"rq.iterationData.enableTracking(options?)","slug":"rq-iterationdata-enabletracking-options","depth":3,"children":[]},{"title":"rq.iterationData.disableTracking()","slug":"rq-iterationdata-disabletracking","depth":3,"children":[]},{"title":"rq.iterationData.applyMutation(instruction, key, value?)","slug":"rq-iterationdata-applymutation-instruction-key-value","depth":3,"children":[]},{"title":"rq.iterationData.addLayer(list)","slug":"rq-iterationdata-addlayer-list","depth":3,"children":[]}]},{"title":"How values are saved","slug":"how-values-are-saved","depth":2,"children":[{"title":"Value types","slug":"value-types","depth":3,"children":[]}]},{"title":"Common Use Cases","slug":"common-use-cases","depth":2,"children":[{"title":"Conditional Logic Based on Data","slug":"conditional-logic-based-on-data","depth":3,"children":[]},{"title":"Validating Response Against Expected Data","slug":"validating-response-against-expected-data","depth":3,"children":[]}]},{"title":"Data File Format Examples","slug":"data-file-format-examples","depth":2,"children":[{"title":"CSV Format","slug":"csv-format","depth":3,"children":[]},{"title":"JSON Format","slug":"json-format","depth":3,"children":[]}]},{"title":"Related Documentation","slug":"related-documentation","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/requestly/2cf99d119986eba4/js/botsonic.js","/_mintlify/custom/requestly/5c5995a0f8a825f2/js/download-popup.js","/_mintlify/custom/requestly/9e92f7b5c9350811/js/analytics.js","/_mintlify/custom/requestly/63b7c64ab43d10df/js/consent-bootstrap.js"],"subdomain":"requestly","siteName":"Requestly","title":"rq.iterationData (Iteration data) - Requestly","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-02T08:56:04.681Z","originalFileLocation":"api-client/rq-api-reference/rq-iteration-data.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Access data from CSV or JSON files during collection runs in Requestly API client scripts.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Requestly\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/requestly/7Syc77EEQZldZCdP/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/requestly/7Syc77EEQZldZCdP/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/requestly/7Syc77EEQZldZCdP/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/requestly/7Syc77EEQZldZCdP/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/requestly/7Syc77EEQZldZCdP/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/requestly/7Syc77EEQZldZCdP/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/requestly/7Syc77EEQZldZCdP/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/requestly/7Syc77EEQZldZCdP/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/requestly/7Syc77EEQZldZCdP/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"rq.iterationData (Iteration data) - Requestly\">\u003cmeta data-mint-head property=\"og:description\" content=\"Access data from CSV or JSON files during collection runs in Requestly API client scripts.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Requestly Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.requestly.com/api-client/rq-api-reference/rq-iteration-data\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://requestly.mintlify.site/_mintlify/api/og/v2?division=Requestly+Scripts+Reference\u0026amp;title=rq.iterationData+%28Iteration+data%29\u0026amp;description=Access+data+from+CSV+or+JSON+files+during+collection+runs+in+Requestly+API+client+scripts.\u0026amp;theme=dfd23f4109c6375c6ff7eda1\u0026amp;signature=0d2461e07a102820d924958e1af371592a6b18d1ac93b7ba26aa73e50ac14258\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"rq.iterationData (Iteration data) - Requestly\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Access data from CSV or JSON files during collection runs in Requestly API client scripts.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://requestly.mintlify.site/_mintlify/api/og/v2?division=Requestly+Scripts+Reference\u0026amp;title=rq.iterationData+%28Iteration+data%29\u0026amp;description=Access+data+from+CSV+or+JSON+files+during+collection+runs+in+Requestly+API+client+scripts.\u0026amp;theme=dfd23f4109c6375c6ff7eda1\u0026amp;signature=0d2461e07a102820d924958e1af371592a6b18d1ac93b7ba26aa73e50ac14258\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/requestly/7Syc77EEQZldZCdP/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Requestly\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2563eb\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.requestly.com/api-client/rq-api-reference/rq-iteration-data\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-client/rq-api-reference/rq-iteration-data.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.requestly.com/#organization\",\"name\":\"Requestly\",\"url\":\"https://docs.requestly.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/requestly/1os8lH_VUE6QydeH/images/logo-light.webp?fit=max\u0026auto=format\u0026n=1os8lH_VUE6QydeH\u0026q=85\u0026s=f4d79e60313d7b955f46e0ad446bc80d\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.requestly.com#website\",\"name\":\"Requestly\",\"url\":\"https://docs.requestly.com\",\"publisher\":{\"@id\":\"https://docs.requestly.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.requestly.com/api-client/rq-api-reference/rq-iteration-data#webpage\",\"url\":\"https://docs.requestly.com/api-client/rq-api-reference/rq-iteration-data\",\"name\":\"rq.iterationData (Iteration data)\",\"description\":\"Access data from CSV or JSON files during collection runs in Requestly API client scripts.\",\"dateModified\":\"2026-11-02T08:56:04.681Z\",\"isPartOf\":{\"@id\":\"https://docs.requestly.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.requestly.com/api-client/rq-api-reference/rq-iteration-data#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.requestly.com/api-client/rq-api-reference/rq-iteration-data#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Getting Started\",\"item\":\"https://docs.requestly.com/api-client/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Requestly Scripts Reference\",\"item\":\"https://docs.requestly.com/api-client/rq-api-reference/overview\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"rq.iterationData (Iteration data)\",\"item\":\"https://docs.requestly.com/api-client/rq-api-reference/rq-iteration-data\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.requestly.com/api-client/rq-api-reference/rq-iteration-data#article\",\"headline\":\"rq.iterationData (Iteration data)\",\"name\":\"rq.iterationData (Iteration data)\",\"description\":\"Access data from CSV or JSON files during collection runs in Requestly API client scripts.\",\"url\":\"https://docs.requestly.com/api-client/rq-api-reference/rq-iteration-data\",\"mainEntityOfPage\":{\"@id\":\"https://docs.requestly.com/api-client/rq-api-reference/rq-iteration-data#webpage\"},\"dateModified\":\"2026-11-02T08:56:04.681Z\",\"publisher\":{\"@id\":\"https://docs.requestly.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.requestly.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Requestly\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Requestly\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-client/rq-api-reference/rq-iteration-data.md","siteName":"Requestly","nav":{"global":null,"tabs":[{"tab":"API Client","icon":"house","groups":[{"group":"Getting Started","pages":[{"title":"Getting Started","href":"/api-client/overview"},{"title":"Verify Your Linux Download","icon":"shield-check","href":"/api-client/verify-linux-download"},{"group":"Sending Requests","pages":[{"group":"Create Requests","pages":[{"title":"Overview","href":"/api-client/send-api-request/create-requests/overview"},{"title":"Configure Request","href":"/api-client/send-api-request/create-requests/configure-request"},{"title":"Parameters and Body Data","href":"/api-client/send-api-request/create-requests/parameters-and-body"},{"title":"Request Headers","href":"/api-client/send-api-request/create-requests/request-headers"},{"title":"Generate Client Code","href":"/api-client/send-api-request/create-requests/generate-client-code"}]},{"title":"GraphQL Request","href":"/api-client/send-api-request/graphql-request"},{"title":"gRPC Request","href":"/api-client/send-api-request/grpc-request"},{"title":"SOAP Requests","href":"/api-client/send-api-request/send-soap"},{"group":"Realtime","pages":[{"title":"WebSocket Request","href":"/api-client/send-api-request/websocket-request"},{"title":"Socket.IO Request","href":"/api-client/send-api-request/socketio-request"},{"title":"MQTT Request","href":"/api-client/send-api-request/mqtt-request"}]},{"group":"Authorization","pages":[{"title":"Authorization","href":"/api-client/send-api-request/authorization"},{"title":"Digest Auth","href":"/api-client/send-api-request/authorization/digest"},{"title":"JWT Bearer","href":"/api-client/send-api-request/authorization/jwt-bearer"},{"title":"NTLM","href":"/api-client/send-api-request/authorization/ntlm"},{"title":"OAuth 1.0","href":"/api-client/send-api-request/authorization/oauth1"},{"title":"OAuth 2.0","href":"/api-client/send-api-request/authorization/oauth2"},{"title":"Hawk","href":"/api-client/send-api-request/authorization/hawk"},{"title":"AWS Signature v4","href":"/api-client/send-api-request/authorization/aws-signature-v4"}]},{"title":"SSL Certificates","href":"/api-client/send-api-request/ssl-certificates"},{"title":"Cookies","href":"/api-client/send-api-request/cookies"},{"title":"Filter a JSON Response","href":"/api-client/send-api-request/filter-json-response"},{"title":"API Call History","href":"/api-client/send-api-request/replay-request-from-history"}]},{"group":"Organizing APIs","pages":[{"title":"API Collections","href":"/api-client/api-collections"},{"title":"Create Request \u0026 Response Examples","href":"/api-client/examples"}]},{"group":"Import \u0026 Export","pages":[{"title":"Overview","href":"/api-client/import-export"},{"title":"Import from cURL","href":"/api-client/import-export/import-from-curl"},{"title":"Import from postman","href":"/api-client/import-export/import-from-postman"},{"title":"Import from Bruno","href":"/api-client/import-export/import-from-bruno"},{"title":"Import SOAP requests from WSDL","href":"/api-client/import-export/import-from-wsdl"},{"title":"Import / Export OpenAPI Spec","href":"/api-client/import-export/import-openapi-spec"},{"title":"Import / Export Collections","href":"/api-client/import-export/import-export-api-collections"},{"title":"Import / Export Environments","href":"/api-client/import-export/import-export-api-environment"},{"title":"Import from HAR","href":"/api-client/import-export/import-from-har"}]},{"group":"Variables \u0026 Environments","pages":[{"title":"Variables and Environment","href":"/api-client/environments-and-variables"},{"title":"Environment Variables","href":"/api-client/environments-and-variables/environment-variables"},{"title":"Collection \u0026 SubCollection Variables","href":"/api-client/environments-and-variables/collection-and-subcollection-variables"},{"title":"Global Variables","href":"/api-client/environments-and-variables/global-variables"},{"title":"Runtime Variables","href":"/api-client/environments-and-variables/runtime-variables"},{"title":"Dynamic Variables","href":"/api-client/environments-and-variables/dynamic-variables"},{"title":"Variable Precedence","href":"/api-client/environments-and-variables/variable-precedence"},{"title":"Using Variables in API Requests","href":"/api-client/environments-and-variables/using-variables-in-api-requests"},{"title":"Set a Response Value as a Variable","href":"/api-client/environments-and-variables/set-response-value-as-variable"},{"group":"Vault","pages":[{"title":"Overview","href":"/api-client/vault/vault"},{"title":"AWS Secrets Manager","href":"/api-client/vault/aws-secrets-manager"},{"title":"Azure Key Vault","href":"/api-client/vault/azure-key-vault"}]}]},{"group":"API Testing","pages":[{"title":"Generate API Test Cases using the Test Authoring Agent","href":"/api-client/ai-test-generator"},{"title":"Pre-request \u0026 Post-response Scripts","href":"/api-client/scripts"},{"title":"Code Snippets in Scripts","href":"/api-client/script-snippets"},{"title":"Writing Tests","href":"/api-client/tests"},{"title":"DevTools","href":"/api-client/devtools"},{"title":"Import packages into your scripts","href":"/api-client/import-packages-into-your-scripts"}]},{"group":"Automation","pages":[{"title":"Collection Runner","href":"/api-client/collection-runner"},{"title":"Run Collections with Custom Data","href":"/api-client/collection-runner-data-file"},{"title":"Scheduled Runs","href":"/api-client/scheduled-runs"},{"group":"Command Line","pages":[{"title":"CLI","href":"/api-client/cli"},{"title":"Run on CI/CD","href":"/api-client/run-on-cicd"}]}]},{"group":"Git","pages":[{"title":"Overview","href":"/api-client/git/overview"},{"title":"Connect a project to Git","href":"/api-client/git/connect-a-project"},{"title":"Stage and commit changes","href":"/api-client/git/commit-changes"},{"title":"Push and pull","href":"/api-client/git/push-and-pull"},{"title":"Providers and authentication","href":"/api-client/git/providers-and-authentication"},{"title":"Switch and create branches","href":"/api-client/git/branches"},{"title":"Browse history and diffs","href":"/api-client/git/history-and-diffs"},{"title":"Stash changes","href":"/api-client/git/stashes"},{"title":"Resolve merge conflicts","href":"/api-client/git/resolve-conflicts"},{"title":"Manage remotes","href":"/api-client/git/remotes"}]},{"group":"Requestly Scripts Reference","pages":[{"title":"Overview","href":"/api-client/rq-api-reference/overview"},{"title":"rq.collectionVariables (Collection variables)","href":"/api-client/rq-api-reference/rq-collection-variables"},{"title":"rq.cookies (Cookies)","href":"/api-client/rq-api-reference/rq-cookies"},{"title":"rq.environment (Environment variables)","href":"/api-client/rq-api-reference/rq-environment"},{"title":"rq.execution (Execution control)","href":"/api-client/rq-api-reference/rq-execution"},{"title":"rq.expect (Expect object)","href":"/api-client/rq-api-reference/rq-expect"},{"title":"rq.globals (Global variables)","href":"/api-client/rq-api-reference/rq-globals"},{"title":"rq.info (Execution info)","description":"Access metadata about the current script execution context in Requestly API client.","href":"/api-client/rq-api-reference/rq-info"},{"title":"rq.iterationData (Iteration data)","href":"/api-client/rq-api-reference/rq-iteration-data"},{"title":"Legacy globals and requestly","description":"The older global variables and the requestly object that scripts can still use in Requestly API client, with the rq.* API to use instead.","href":"/api-client/rq-api-reference/legacy-globals"},{"title":"rq.request (Request object)","href":"/api-client/rq-api-reference/rq-request"},{"title":"rq.response (Response object)","href":"/api-client/rq-api-reference/rq-response"},{"title":"rq.sendRequest (Send a request)","href":"/api-client/rq-api-reference/rq-send-request"},{"title":"rq.test (Test object)","href":"/api-client/rq-api-reference/rq-test"},{"title":"rq.variables (All scopes)","href":"/api-client/rq-api-reference/rq-variables"},{"title":"rq.vault (Vault object)","href":"/api-client/rq-api-reference/rq-vault"},{"title":"rq.visualizer (Response visualization)","href":"/api-client/rq-api-reference/rq-visualizer"}]}]},{"group":"API Design","pages":[{"title":"API Design","href":"/api-client/api-design/overview"},{"title":"Create and Edit a Specification","href":"/api-client/api-design/create-and-edit-a-specification"},{"title":"Component Library","href":"/api-client/api-design/component-library"},{"title":"Issues \u0026 Governance","href":"/api-client/api-design/issues-and-governance"},{"title":"Sync a Collection from a Specification","href":"/api-client/api-design/sync-a-collection-from-a-specification"},{"title":"Versions \u0026 Releases","href":"/api-client/api-design/versions-and-releases"},{"title":"Publish API Documentation","href":"/api-client/api-design/publish-api-docs"}]},{"group":"Mock Server","pages":[{"title":"Introduction","href":"/api-client/mock-server"},{"group":"Create a mock","pages":[{"title":"From a Collection","href":"/api-client/mock-server/create-from-collection"},{"title":"From an OpenAPI File","href":"/api-client/mock-server/create-from-openapi"}]},{"title":"Routes","href":"/api-client/mock-server/routes"},{"title":"Responses and selection modes","href":"/api-client/mock-server/responses"},{"title":"Matching rules","href":"/api-client/mock-server/rules"},{"title":"Private Mocks","href":"/api-client/mock-server/private-mocks"},{"title":"Request Logs","href":"/api-client/mock-server/logs"}]},{"group":"Collaboration \u0026 Projects","pages":[{"title":"Introduction","href":"/collaboration/workspaces"},{"title":"Local project","href":"/collaboration/local-workspace"},{"title":"Working with multiple projects","href":"/collaboration/multiple-workspaces"},{"group":"Shared projects","pages":[{"title":"Team projects","href":"/collaboration/how-to-get-started-with-shared-workspace"},{"title":"Managing your project","href":"/collaboration/how-to-get-started-with-shared-workspace/managing-workspace"},{"title":"User Roles and Permissions","href":"/collaboration/how-to-get-started-with-shared-workspace/user-roles"}]}]},{"group":"Account \u0026 Administration","pages":[{"title":"Billing \u0026 Subscriptions","href":"/account/billing-subscriptions"},{"title":"Organization resources","href":"/account/organization-resources"},{"title":"Data residency","href":"/account/data-residency"},{"title":"AI features and your data","href":"/account/ai-and-your-data"},{"title":"Data Recovery Policy","href":"/account/data-recovery"},{"title":"How is the Browser Extension Different from the Desktop App","href":"/account/how-is-browser-extension-different-from-a-desktop-app"},{"group":"Single Sign-On","pages":[{"title":"Set up Microsoft Entra ID","href":"/account/sso/how-to-set-up-sso-with-microsoft-entra-id"},{"title":"SAML SSO with Okta","href":"/account/sso/setup-sso-with-okta"}]},{"group":"Enterprise Deployment","pages":[{"title":"Deploy on Windows","href":"/account/enterprise-deployment/deploy-windows-msix"}]}]}]},{"tab":"HTTP Interceptor","icon":"globe","href":"https://interceptor-docs.requestly.com"},{"tab":"Changelogs","icon":"clock","pages":[{"title":"Changelogs","href":"/changelogs"}]}]},"basePath":"","title":"rq.iterationData (Iteration data) - Requestly","deploymentId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","buildId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","dynamics":[],"chunks":[]}