Need help : Issue with Constraint

Hi Bubble Community,

I hope you’re all doing well. I’m currently facing an issue with updating the order number for cart items after a successful Stripe payment. I would greatly appreciate your help in resolving this matter.

Here’s a brief overview of what I’ve tried so far:

  1. After a successful payment, I create a new order with a unique order number for the current user.
  2. I then use the “Make changes to a thing” action to update all the items in the cart associated with the current user. I set the “Order Number” field of each item to the unique order number generated in step 1.
  3. To ensure that only the items belonging to the current user are updated, I added a search constraint “Creator = Current User” in the “Do a search for” action.

Despite these efforts, the changes to the “Order Number” field are not taking effect, and the cart items remain unchanged.

If anyone has encountered a similar issue or has any suggestions on how to resolve it, I would be extremely grateful for your guidance.

Thank you in advance for your help!