# Postman Flows: How to create Durables based on xml body response

**URL:** <https://community.postman.com/t/postman-flows-how-to-create-durables-based-on-xml-body-response/31487>\
**Category:** Help Hub\
**Tags:** variables, postman-flows\
**Created:** [January 12, 2022, 11:51am UTC](https://community.postman.com/t/postman-flows-how-to-create-durables-based-on-xml-body-response/31487 "2022-01-12T11:51:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![technical-pilot-4039](https://avatars.discourse-cdn.com/v4/letter/t/91b2a8/32.png) [@technical-pilot-4039](https://community.postman.com/u/technical-pilot-4039)\
**Post date:** [January 12, 2022, 11:51am UTC](https://community.postman.com/t/postman-flows-how-to-create-durables-based-on-xml-body-response/31487/1 "2022-01-12T11:51:17Z")

</div>

Hello, I am trying to pass a variable between a POST and a GET request by interposing the “create Durable” block.

 ![2022-01-12-10-55-36](https://us1.discourse-cdn.com/getpostman/original/2X/e/e942d5fe5485b90dc664af06b79090f3c408e0f1.png)

In this block, a variable “businesscaseId” should be set based on the response body of the POST request, which in turn will be used in the GET URL ({{url}}/businesscases/{{businesscaseId}}) of the following request.

Currently I get the entire response body (XML) instead of the specific “ID”:

 ![2022-01-12-12-42-16](https://us1.discourse-cdn.com/getpostman/original/2X/1/1e5689d55104b47f3b3d46b1a3a30e0bde8ac64a.png)

 ![2022-01-12-10-55-53](https://us1.discourse-cdn.com/getpostman/original/2X/e/e83041bf4343a0d1ce3dc675e4a428b52706e7ae.png)

How can I set the value of the “ID” in the “Create Durables” block so that only a part (the ID) of the response body is used instead of the whole response body?

_I’ve already tried_:  
The ID is logged out via a test script:

var responseJson = xml2Json(responseBody);  
console.log(“businesscaseId”, responseJson[“ns1:BusinesscaseId”][“ns1:Id”]);

Previously I worked with environment variables and the collection runner. Since the request via flows treat the environment variables as read only, I am now looking for a way to set them in flows.
