Is possible to pass a list of objects to database?

So, my plugin returns (exposed states) a list of objects. I want to save each object in Bubble database, but i don’t know how to do it (or if it’s possible). I tried to return like a list, but when i gonna save it on database, it’s shows empty value (maybe because i’m passing by the wrong way).
I can pass it like an list of lists, but i think it’s not gonna work too.
What i can do is pass a list of strings too, like this: [“key:value”,…], but when i set on my workflow to create a new thing on database, i tried the options “add”, “add list” and “set list” but none of them worked.

Either:

  • Schedule API Workflow on a list so it executes a workflow per item. (Easy difficulty, can’t get the resulting list of newly created Things though, low efficiency on large lists)
  • Setup a recursive workflow to loop through the list and create an item for each. (Medium difficulty, Can get the resulting list, medium efficiency on large lists)
  • Data API Bulk Create endpoint (Expert difficulty, can get the resulting list, high efficiency on large lists)

Or the easiest and best option that doesn’t exist yet:

2 Likes