Decoding an ASCII (ISO646-US) Number Array to String through JavaScript using Toolbox Plugin

I have a repeating group where I receive data from an Amazon product API. Among the data for each product received, is the path of the main product image, which comes in the format of an array of numbers. In order to convert this number array to the image URL path I need to modify it via JavaScript:

The API documentation states the following about the image:

“Each entry represents the integer of a US-ASCII (ISO646-US) coded character. The easiest way to convert it to a String in Javascript would be var imageName = String.fromCharCode.apply(”“, dealObject.image);. Example: [54,49,107,51,76,97,121,55,74,85,76,46,106,112,103], which equals ‘61k3Lay7JUL.jpg’.”

I want to execute the function “String.fromCharCode.apply()” using the Toolbox plugin code editor to transform that into the image path by converting the numbers into the image route.

Full Amazon image path: https://images-na.ssl-images-amazon.com/images/I/[CONVERTED IMAGE PATH]

The JavaScript code & the JavaScript to Bubble element are set as follows:

Captura de Pantalla 2024-05-01 a la(s) 18.17.06

How the workflow is set up and how it runs on the debugger:

Captura de Pantalla 2024-05-01 a la(s) 18.20.00
Captura de Pantalla 2024-05-01 a la(s) 18.20.06

How the image input is populated in the “make changes to a thing” field

Captura de Pantalla 2024-05-01 a la(s) 18.23.49

Things I’ve tested so far that did not work:

  • Using a custom state to pass the value after running the code
  • Changing the value I receive from the API from number to text
  • Using the current cell index as a dynamic suffix in the bubble_fn_
  • Using the Dequeu option
  • Trying to convert the array back to numbers assuming bubble treat it as a string.
  • Passing the array through param1 & paramlist1 parameters
  • Uncheck “asynchronous”

The result is always a record in the database with the hardcoded path but with any value delivered from the javascript element: images-na.ssl-images-amazon/images/l/[No Javascript value here]

I’m out of ideas please help