S
S
Siemens2022-03-29 17:09:46
JavaScript
Siemens, 2022-03-29 17:09:46

How to keep postman variable after previous request?

The situation is the following. I send a Post request to get a number. It comes to me in the format
{
"contractId": "ac9ad97d-1f1c-70fd-1e33-1ff36dba5d44"
}
How can I store the contractId value in a variable?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
ArturMavlidov, 2022-03-29
@ArturMavlidov

const fn = async () => {
  let твояПеременная = await fetch(...)
}

T
TheAndrey7, 2022-03-29
@TheAndrey7

Postman has scripts. Store the value in ENV and retrieve it in another query.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question