Untitled

 avatar
unknown
plain_text
3 years ago
528 B
3
Indexable
const list = [{
  term: 'blockchain',
  profile: 'courses',
  urls: ['https://something/study/something', 'https://another.good.thing/']
}, {
  term: 'blockchain',
  profile: 'courses',
  urls: ['https://something/study/something', 'https://another.good.thing/']
}]

let i=0
for (let search in list) {
  i++
  postman.setEnvironmentVariable("term", search.term); 
  postman.setEnvironmentVariable("profile", search.profile);
  if (i > 4) {
    break;
  }
}

------



 {
    "profile": "{{profile}}",
    "query": "{{term}}",
}