Question
Accenture
IN
Last activity: 30 Apr 2025 21:27 EDT
Postman PreScript In Pega's Connect-Rest
I have a Postman collection for rest service with Prescript[Java script custom code], how to execute this custom code in Pega before the connect-rest?
The custom code is using some "Postman.SetGlobalVariable"
kind of functions...
The custom preScript code is returning Authentication header value which is necessary for Connect-rest execution.
If I add that javascript code in harness as a JS file...will the Postman.SetGlobalVariable lines execute properly?
TIA