Hi,
I need to build an API backend workflow that runs a small javascript function. For this I am using Toolbox “Server Script”.
It seems that it won’t return anything and all my actions in the workflow that rely on the ServerScript result don’t work.
I have simplified at the very maximum the script to find my error but still it won’t work.
Please see on the attached screenshot how I’ve setup the ServerSide action
put a console.log statement to output your thingslist1[0] at the start and then look at the server logs. You will have to tick on server side output in the advanced section of your server logs
Can you sandwich the console.log(properties.thinglist1[0]) in two log statements with static text?
i.e.
console.log(‘start’);
console.log(properties.thinglist1[0]);
console.log(‘finish’);
Bubble server log output is very hard to read. It looks like it’s undefined but just to be sure I’m looking at the right thing. If it is, this is why you aren’t receiving a return statement which means the issue is with your data