Server side plugin - Input as List length() return object instead of integer

Hi all,

I have noticed that the properties.inputlist.length() returns an empty array instead of an integer, this behavior happens only on backend server plugin.

Anyone facing the same behavior ?
Expected a number, but got a object (original data: {})

This seems to work normally on client side plugin

the length method returns a promise, you need to await list.length()


Thanks @dorilama
On some plugin when I add it that works on others I get this error which i dont really understand

Found your Need help with async server side plugin - #4 by dorilama

that topic is for the old v3 api. You need to use the new v4 api.
The error you see is because the code inside the main bubble function has some syntax error

This topic was automatically closed after 13 days. New replies are no longer allowed.