# Set array to global once a day, then get specific array by the hour

**URL:** https://discourse.nodered.org/t/set-array-to-global-once-a-day-then-get-specific-array-by-the-hour/82261
**Category:** General
**Created:** [22 October 2023 19:27 UTC](https://discourse.nodered.org/t/set-array-to-global-once-a-day-then-get-specific-array-by-the-hour/82261 "2023-10-22T19:27:26Z")
**Posts on this page:** 1
**Showing post:** 4

<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: [22 October 2023 20:17 UTC](https://discourse.nodered.org/t/set-array-to-global-once-a-day-then-get-specific-array-by-the-hour/82261/4 "2023-10-22T20:17:15Z")

</div>

> [@P-solver](#):
>
> ```auto
> global_tomorrowsprice[] = JSON.parse(global.get('tomorrowsprice'));
> 
> ```

That is a syntax error also. i.e `[]`

You used my last code example from [Getting next hours electric spot-price from Nordpool via nordpool-api-plus - #5 by E1cid](https://discourse.nodered.org/t/getting-next-hours-electric-spot-price-from-nordpool-via-nordpool-api-plus/82198/5)  
But you didn't even acknowledge me in the thread.

---

_[View the full topic](https://discourse.nodered.org/t/set-array-to-global-once-a-day-then-get-specific-array-by-the-hour/82261)._
