October 22, 2024
Chicago 12, Melborne City, USA
java

Create JSON request payload from extracted values inside ForEach controller


I have a list of countries using them I created my var_ variables to be used in ForEach loop controller

enter image description here

For Each Loop – Output variable countryName

enter image description here

Inside the ForEach loop controller – I have a JSON Extractor which is fetching the countryId,CurrencyId,countryCode on the basis of countryNames(output variable)
enter image description here

I want to create my JSON using these extracted values . But the problem is I am unable to retain the list of values extracted as every time the loop runs the values reset to the most recent value . I want to use the List of values here that I can use to create my JSON payload request .

enter image description here



You need to sign in to view this answers

Leave feedback about this

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video