# URL outside of the http request

**URL:** <https://discourse.nodered.org/t/url-outside-of-the-http-request/58970>\
**Category:** General\
**Created:** [25 February 2022 08:19 UTC](https://discourse.nodered.org/t/url-outside-of-the-http-request/58970 "2022-02-25T08:19:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Milanovic](https://avatars.discourse-cdn.com/v4/letter/m/3da27b/32.png) [@Milanovic](https://discourse.nodered.org/u/Milanovic)\
**Post date:** [25 February 2022 08:19 UTC](https://discourse.nodered.org/t/url-outside-of-the-http-request/58970/1 "2022-02-25T08:19:04Z")

</div>

Hi,

I'm reading out a http request, but I want the serialnumber = a global variable. How can I use the variable Usermatrix[6][1] ?

$globalContext("UserMatrix[6][1]") doesn't work

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/9/7984282fb60e22e3451363cbe12477df3755d438.png)

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [25 February 2022 08:33 UTC](https://discourse.nodered.org/t/url-outside-of-the-http-request/58970/2 "2022-02-25T08:33:15Z")

</div>

in a template node that would be  
`varname={{global.UserMatrix.6.1}}`

But you could use a change node set to jsonata with  
`"varname=" & $globalContext("UserMatrix[6][1]")`

---

<div class="post-metadata">

**Author:** ![Milanovic](https://avatars.discourse-cdn.com/v4/letter/m/3da27b/32.png) [@Milanovic](https://discourse.nodered.org/u/Milanovic)\
**Post date:** [25 February 2022 09:43 UTC](https://discourse.nodered.org/t/url-outside-of-the-http-request/58970/3 "2022-02-25T09:43:23Z")

</div>

Ok thanks,

How can I do this to get the value of [5][1] in it

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/7/1763a51a1164b6fa08ed8604fcd08ca099c06e40.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [11 March 2022 09:43 UTC](https://discourse.nodered.org/t/url-outside-of-the-http-request/58970/4 "2022-03-11T09:43:56Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
