Find a thing and change its field?

Hi
I’m very confused about how to work with “do a search for”.
I have a simple problem, an endpoint workflow runs and have some data objects.

I want to search for a thing that has the same data in one of its fields as an object from the workflow. Then I want to make changes to that thing.

The object from the workflow does not appear in the dropdown.
And I don’t wont to select change the first item, since I don’t know if the things is actually the first item…

What would be the proper and simple way to do this?

For any search in Bubble you setup constraints that allow you to find the first item that suits those constraints:

In your case perhaps you can click here to open the constraints box and then set the search for the first item:

image

@fze - This sounds like you need a Backend workflow

On the back end, create an Endpoint with a parameter to send through that NODE. The Endpoint workflow should include Make a Change to a Thing

On the front end, schedule a workflow. In your search, you will specify where UID = UID. You then pass that Node through to the endpoint

In my example, I am doing a bunch of stuff on the backend in my workflows including updating records

1 Like

Thanks for the reply
I cant make it work. I don’t want to change the first item I want to find a specific item and then change it.

I made a simplified test of the problem.
inputs

The database:

If I type in Orange as the fruit and Pink as the colour. Then press the button, I want the field Color to change for the “Orange” thing

What would the step by step workflow look like?
Thanks for the reply!

@jeffrey.j.obrien I don’t really follow, If I make a new endpoint that takes UID(string) as a parameter. In that workflow how do I make the search for a thing that has a field with the same value as the UID parameter?
Please see my other reply above

Solved it! thanks @cmarchan and @jeffrey.j.obrien
The confusing part was that the “search for Fruits/Nodes” pop-up disappeared when pressing the “make changes…” pop-up… and also the first item nomenclature.
(its not the first item in the data base, its the first item who matches the constraints)

I managed to use the node data when making another API workflow, this was confusing since the data is there already.

Here is the fruit solution ( press the arrow to make the search to pop up )

Cheers!

1 Like