About the Data Store, the UPSERT action.
I believe that “Wich Records” search the Data Store following the values I set, find this record, and update, if not found, insert one record, right?
This search is made using “AND” or “OR”? For example, using the fields of the image below, this component search for records where home_id = 1 AND inclusion_field_id = 2? OR home_id = 1 OR inclusion_field_id = 2?
I’ve only ever been able to get this working with one field (usually an ID) rather than a combination of two using AND or OR
It would be really useful for this to be an option, though. I guess it will likely be AND (where all criteria are met) but maybe the genius that is @patrick can find a sensible way to give AND/OR options - something like the query builder conditions would be incredible!
I had to check the code to see if it does OR or AND on the Which Records. Is seems that it is doing OR. Strange that it didn’t update all your records, since they all have home_id: 112.
@patrick, thanks. So the operator seems to be “OR” ! The other fields are different!
When I run the upsert from a button inside the page, it updates all the registers.
When I run inside of javascript file, it is a different flow (my first post).
I haven’t used the Upsert with multiple criteria like this either, but if I did, I would usually want and expect it to use AND not OR. (It would seem more like a bug than a feature to use OR).