Hi @keith , first of all THANK YOU for sharing this. The video was especially helpful to help me understand how to get data out of a custom API call inside a server-side action (aka the API Ghetto you talk about).
But I’m having problems with this plugin because it doesn’t work with null
or undefined
values.
My API call returns a list of LinkedIn Pages. From that API call I extract the id
, name
, and logo
for each page. I then use those values to build a list of ids
, a list of names
, and a list of logos
which I return from the server-side action.
My aim is to take those lists and “pop” a list item of each one to turn it into a LinkedIn Page
Bubble thing (aka turn it back into structured data inside Bubble). So far this is the same process as described in your video.
But (and this is the important part) some pages do not have a logo value. So to keep each list of equal length, which is crucial for making this process work, I have return a null
or undefined
value when there is no logo
value.
And that is where things go wrong with List Popper…
When using undefined
or null
values the resulting LinkedIn Page
data is all mixed up. The ids, names, and logos do not match each other.
I have tested this by using a text value of NOT FOUND
instead of undefined
or null
and that does make the resulting LinkedIn Page
have the correct ids, names, and logos. They are no longer mixed up.
But that workaround has it’s own drawbacks because Bubble no longer recognises the image as “empty” which causes various display problems on the front end.
Is there anyway we can make List Popper work with undefined
/null
or similar values? Is there another way of doing this using lists of unequal length?
So far the solution you describe here is the best I’ve found for the API Ghetto problem, but alas I’m stumbling at this last hurdle.