How to change the flow of execution dynamically across folders in a collection or different collection

Hello @RagaDeepika,

Welcome to the Community :partying_face:

Seems like an interesting use case,

  1. 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”.

  1. 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 :grinning:

this might not solve your problem completely, but you can try to implement this approach :blush: All the best!