Add a record to a list of records

Hello !

I’m having issues with a list of records. I have 2 objects : “Company” and “Offer”
There is a list of Offers on the object Company named “Offers”

When I create a new offer, I want to add it to the list “Offers” on the “Current User’s Company” (you can look at the screen shots)

When I try debugging, nothing appears in the List of offers on the company database. I have tried many options but without results :confused:


Ideally, in Step 3, refer to Step 1’s offer and make changes to that. Workflows in Bubble need not execute sequentially which is why Step 3 could be executing before 1.

Also, I see that you are creating a new Offer in Step 1 but are not linking that to the Current User (making changes to thing → Current user), so you might want to do that as well.

Hello @Zeroic , thanks for your fast answer !

Concerning the first answer, you mean that i can’t add this new element to a list which is not in the flow since it could add it before its creation ?

Concerning the second part, I only want to add the offer to the company where the user works. So there is a lookup company on the user database. So I can link it with “Current User’s Company’s Offer”. Is that a problem ?

That’s correct. The safe bet would be to just refer to the result of step 1 (in your thing to change) which forces Bubble to execute step 1, and then step 3

Okay that works, but are you adding the new offer (that you are creating in Step 1) to the Current User’s company?

For the first part : how could I do this ? I’m not sure how to figure it

For the second part, yes i’m adding in the step 3 the new offer to the current user’s company’s offer list

I just rechecked your workflow and you seem to be doing this. Do you want to connect on a quick call to debug?

Yes sure, with pleasure !
Booked a meet at 6:00pm CET :slight_smile:

This issue was fixed and solved on call with @Nayxo.

  1. The workflow had to be changed (Step 3 was making changes to a list of things, whereas the action of making change to a thing had to be used, with the field being Offers, and adding item to the list).
  2. Furthermore, cookies had to be deleted since the Current user’s Company was showing up as empty despite being in the DB.
1 Like