I have several calls in a workflow that don’t return body data in the response and I need to set the last part of the location URL path as an environment variable to use in the next call.
Ex.
- Request: Create package - Response: URL/packageID (packageID is what I want to set as a variable)
- Request: Create document inside of package (use package ID in post) - Response: URL/documentID (documentID is what I want to set as a variable)
- etc.
I’ve searched the community
I’ve reviewed
and I’ve looked through
https://www.postmanlabs.com/postman-collection/HeaderList.html
…but still don’t understand how to get just one part of the URL to set as a variable from the Header Response > Location
Below is a screenshot of the part of the URL I want to set as a variable. Help from the community would be much appreciated.
- Thank you!