Use Existing Postman Request in Pre/Post Script

@sean.keegan :face_with_hand_over_mouth: thanks sean for the kind words :sparkling_heart: happy to see the public workspace being mentioned .

@cryosat-candidate-16 just store the request you want as a variable

In the test script of the req you want to send in prerequest add:

   pm.environment.set("req", pm.request)

And in pre-request script where u want to send it use;

  pm.sendRequest(pm.environment.get("req"))
7 Likes