Why is not possible to use “ISN’T IN” for “unique id” value while it’s possible for other fields?
When I use a list i prefer to collect “unique id” values instead of other fields (that can be changed by users for example).
I think that this missing feature would be added.
I recall seeing one of the founders say in a post years back that UniqueID was handled differently by Bubble, which is why you can’t do an “is in” type of search. But regardless it’s a major pain. As a workaround you need to search a record based on some other field and ensure that field is unique. This may mean creating a text field and copying over the UniqueID into it, which feels messy but I don’t see a way around it.
In my case I’m running into this when trying to do a nested search of a joining table (which I’m building to try to avoid an advanced filter on a many-to-many search). If I have Items, and Tags, and an Item_Tag joining table, in my Item search constraints what I want to say in essence is… this Item is in search for Item_Tag’s Item. However there’s no such expression. Instead you have to pick a field and say… Item’s Field is in search for Item_Tag’s Item’s Field.
It might help if you create a new field called self_id (text)- and then populate it with the thing’s unique_id after its creation. We use it pretty often.
Wow, I didn’t know this. Another way to get around it is to use the slug field. The added benefit is that it is guaranteed to be unique. But you have to set it.
As I know, the Bubble engine already takes care of id’s uniqueness when you create a new thing. So, you just take the thing’s unique_id and set it as the thing’s self_id (the same thing).
The slug can be changed, while the unique_id - not.
The important thing is not to mess with the steps when you create several things in a workflow.
I mean, when you create Thing 1 and Thing 2, be sure that you set Thing 1's self_id as Thing 1's unique_id, not Thing 1's self_id as Thing 2's unique_id like when I accidentally did for a task…
Do you all know if this same issue applies to getting data via the API? I’ve tried to no avail to get my users by a list of their IDs using a constraints object