Is it possible to access the request.data object in the Pre-request Script section after variables are injected?
Use Case: Hash request.data, which is JSON that contains Postman variables. I am then using this hashed value in a request header (required for authentication).
Problem: When I attempt to hash the request.data it hashes the Postman variable instead of the value.
Environment variables
my_postman_variable = someUserId
Example JSON
{ “userId”: {{my_postman_variable}} }
Expected output
request.data = { “userId”: “someUserId” }
Actual output
request.data = { “userId”: {{my_postman_variable}} }