Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
528 B
2
Indexable
Never
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}}",
}