I’m having trouble with a backend API workflow that updates yes/no fields in my Match data type, and I can’t figure out why it’s not working. Hoping someone can help point me in the right direction.
Here’s the setup:
• I have a backend workflow called process_matchresult.
• It receives parameters:
• match (thing)
• home_goals (number)
• away_goals (number)
• It’s supposed to update three fields in the Match data type:
• result_1x2_home (yes/no)
• result_1x2_draw (yes/no)
• result_1x2_away (yes/no)
Logic inside the workflow:
It first resets all three result fields to “no.”
Then sets the correct one to “yes” based on the score:
• If home_goals > away_goals → result_1x2_home = yes
• If home_goals = away_goals → result_1x2_draw = yes
• If away_goals > home_goals → result_1x2_away = yes
What’s working:
• When I hit the “Settle Match” button on the front end, the goals_hometeam and goals_awayteam fields update correctly.
• The workflow is triggered successfully (I can see it run in the server logs).
What’s not working:
• None of the result_1x2_home, result_1x2_draw, or result_1x2_away fields get updated — they remain empty in App Data.
• I’ve confirmed the parameters are being sent (logs show the right goal values).
• Tried both static “yes” values and conditional logic (Only When), but no luck.
I’m wondering if:
• Boolean values can’t be updated this way from backend workflows?
• Or maybe I’m referencing the wrong fields (home_goals vs goals_hometeam)?
• Or perhaps the workflow order matters?
Would really appreciate any suggestions, screenshots, or example setups from anyone who has handled a similar match result logic before.
have you checked logs?
Sometimes “thing“ get missing. Especially in a recursive flows.
Make sure in logs you see a unique id of the db thing in which changes are being applied
Below is the log, the thing is not missing but it only stops after updating the result, the other action steps that makes changes of yes/no doesn’t run.
5th row from last says “Anonymous user“ it means no user is detected. please pass the user as a parameter and then try.
if you are using “created by = current user “ it will not work
if you use “created by = user(parameter) “ it should work
change it in all searches being used in flow