Hello @RagaDeepika,
Welcome to the Community
Seems like an interesting use case,
- Is there any option to rename your requests, like adding the folder name or some other text to differentiate the requests under three folders?
Because that will be easy, and as you quoted above we can directly use “pm.setNextRequest”.
- You can try to read the folder names, which is currently a open feature request in GH.
But I found a post with a workaround.
This way you can access each folder and write some logic to run in the flow as per your need
this might not solve your problem completely, but you can try to implement this approach All the best!