Hello,
I created a collection that has several scenarios. These scenarios all start in the same way with 4 identical queries.
I would like to know if it is possible to factor these requests in order to re-inject them in each scenario
thank you very much
w4dd325
(w4dd325)
April 1, 2022, 9:09am
2
Hi @Legaly-esignature
If you are running in collection-runner, then I think you’d be looking to use pm.setNextRequest to create a workflow.
Hi @w4dd325 ,
Thank you for your quick response:
Do you know if it is possible to execute a same request group across different collections?
w4dd325
(w4dd325)
April 1, 2022, 9:20am
4
The last part of that link discusses the scope.
setNextRequest() scope is limited to the collection
If you wanted it cross collection, I’d have to sit and have a think about it
Thanks for your help @w4dd325
1 Like
bpricilla
(Pricilla B)
April 1, 2022, 10:34am
6
@Legaly-esignature For cross collection, I see “Flows” might help you. It’s a Beta feature
1 Like
Thanks @bpricilla ! I’m gonna watch this.
I saw Reusing a Request | Postman Team Collections | Postman API Network talking about reusing request cross different collections which is what I am looking for. But it seems only working on postman runner. Does anyone know if this working on newman and how if so? Thanks!