const url = runtime.globalVars.urlg;
const responseg = await fetch( url , requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
runtime.globalVars.json1 = responseg;
But it gives me an error in the variable...The response is a JSON, and i need to do 5 o 6 queries in parallel...(this is only one)
Thank you!
(in console.log it works perfectly, but the variable does not capture the result)