I’ve seen several threads around this topic but honestly still have no clear idea of how to do this.
My plugin passes in a list of things with custom type which is defined by the user. I would like to publish that exact list to the elements custom state. What is the correct code / format to pass to Bubble? I thought it would be as simple as:
You’ll have to first get the list and in each item get() the unique ID of these things, and then publish their unique ID. That’s what Bubble consider a “thing”. Let us know if that helped and share more details if not (:
Had no problem running this in the “update” function. However when I try to run it in the “initialiseState” function nothing gets returned / displayed front-end. Does this look correct?
@nocodeventure If it works, it works
Are you dealing with Bubble objects? I don’t see the get() function being used
@robhblake Glad it worked! Try console.log()'ing the “properties.list” to see what comes from it.
Also, try looking for any errors thrown in the console.