title: How can I create a dynamic variables in Postman for further access?
body: <p>I log in, then get the <code>token</code>. I stored that varibale and use it throughout my next collections.</p>
  
  <pre><code>let location = pm.response.json().location
  let token = location.split("?token=")[1]
  console.log('Token : ',token );
  </code></pre>
  
  <p>When I get the <code>token</code>, I can use that <code>token</code> to call my next API call. </p>
  
  <p><img src="https://i.imgur.com/S4F4mNz.png" alt=""></p>
  
  <p>Let's say I call : cpe profiles, I will get a list of profiles in my CPE </p>
  
  <pre><code>{
      "id": "32341696-80c4-4597-998b-5f6cbe7d5a48",
      "group": "a5dd9ed2-f9c6-4d23-9623-de0cae4d4aa8",
      "name": "Jane",
      "dob": null,
      "image": "assets/profile/e6398f955035eb1a6a297739fedcc770.png",
      "cpe": "E8DE2799DD87"
  }
  </code></pre>
  
  <p>I want to create dynamic variables for all my profiles <code>"{{profile.name}}_ID"</code> </p>
  
  <p>1 profile, I want to create 2 variables.</p>
  
  <pre><code>JANE_ID = "32341696-80c4-4597-998b-5f6cbe7d5a48"
  JANE_GROUP = "a5dd9ed2-f9c6-4d23-9623-de0cae4d4aa8"
  </code></pre>
  
  <p>Then, I can access that avarable later on</p>
  
  <p><img src="https://i.imgur.com/NAWMheE.png" alt=""></p>
  
  <p>How can I create a dynamic variables in Postman ? </p>