Okay no worries. Your script looks good to go but you will need to pair that script with Toolbox’s JavascriptToBubble element. Suffix the JavascriptToBubble element accordingly and you’ll get your results. To display the data in an RG just point the data source to that JavaToBubble element.
Read more here: Javascript to Bubble - Toolbox docs
1 Like