A checkbox on Make changes to a Thing, which creates it if it doesn’t exist.
Hi Matt,
Hope you are well.
Thanks for stepping in.
I currently have the plugin. I’ll try and make use off it.
Thanks.
I’ll reach out if I need help.
Thanks.
Costas
This never existed, it was a Mandela Effect
I think it was deprecated years back. never used it myself so I don’t know if it actually ever worked
Ahh, okay, yeah, I recall that as being something mentioned at some point in some way. But the idea of using a make changes to thing action is that the ‘thing’ is already known, otherwise the way that action works, it is impossible to pull up the fields for that type of ‘thing’, and since it wouldn’t be possible to add a dynamic expression into a make changes to thing action for a ‘thing’ that doesn’t exist, because if it doesn’t exist you can not have a dynamic expression pointing to that thing, it is not possible to know what type of thing it is and whether or not it exists.
This is not going to be a feature Bubble implements. It would require them changing how it is the workflow action of make changes to thing interprets and understands what the thing is, so as to expose the fields for that type of thing in order to allow use to add the values to those fields. So they would need to add a dropdown for us to first select what is the type of ‘thing’ and then another field for us to put the unique id of that thing, and conditionally, if that unique id is empty or when searching the DB (ie: need to check if it exists or not and scan all entries in DB of that type of thing) in order to know to change the action to a create instead of a make changes.
My plugin Data Jedi has functions that enable a setup that solves for that allows a very modular approach to setting up CRUD operations for data in Bubble database.
I know, because I’m saying I think it already existed and then was removed.
This could also be true
It was deprecated in 2017 (don’t know why), so it’s never been a thing as long as I’ve been using Bubble.
From the current Bubble manual:
Of course, you can always create your own ‘upsert’ action (like you would outside of Bubble) using a custom event (ideally inside a RE which you can then use on any page), and call that anytime you need to create a new thing or update an existing one.
But it is kind of strange to me, given the no-code nature of Bubble (and the fact that so much is done for you) that there is no native ‘upsert’ functionality any more.
Predates me too then, by like 5 years… I must’ve seen it from tutorials or those Canvas template apps.
It still shows up in the debugger (even for new apps) - that’s where most people will have seen it (and wondered why there’s no option for it in the editor).
In fact… it’s dead simple to enable this feature just by changing the visibility of the checkbox in the elements tab of dev tools:
And it seems to work perfectly (so I really don’t know why it was deprecated).
I probably wouldn’t recommend using it though, seeing as it’s no longer officially supported (even though it still works).
Haha!