Preview information from database

Hi Builders,

I am able to get data from the DB on the update code of the plugin, but NOT in the preview.
I saw several plugins and they just display some dummy data which is not a good UX, but I understand it might save time on the microservices requests.

On the Update box I use:
var imageList = properties.figures;
let listCounter = imageList.length();
let arrList = imageList.get(0,listCounter);
And I have no issue.

But If I use the same snippet at the preview it returns null. Apparently I am not able to call the back end from the plugin preview?

Is there any workaround?
Best Regards

From what I understand, you’re trying to access the bubble developer (ther user)'s database from the preview function?

yes, exacly