I need to pass the entire request payload as variable in pm.sendRequest() method.For it,I have saved the request payload in environment and got it from env.
At intial,I have set the entire payload structure at enviroment by creating a variable called “AddJob” and assign the below payload(Example) as intial value.Variable values will be stored from API call 1,2,3,4 response
{
“key1”: {{JobName}},
"key2: {{JobId}},
“key3”: {{CompanyId}}
“key4”: {{CompanyName}},
}
At call 5,I have tried to get the “AddJob” variable from env and pass inside postman payload…It was working fine