budibase icon indicating copy to clipboard operation
budibase copied to clipboard

Actions - Automation Result is undefined if automation fails

Open esellier opened this issue 1 month ago • 2 comments

Checklist

  • [X] I have searched budibase discussions and github issues to check if my issue already exists

Hosting

  • Self
    • Method: docker compose
    • Budibase Version: 3.23.29

Describe the bug In a component Actions (on field change for instance), I call an synchronous automation, and in a next step I get the automation result. If the automation result (as I can see in the http request/dev console) is {sucess:false} (as JSON), then the $("Action 1.Automation Result") is undefined. Not really a big issue, but I would expect the result to be the actual result.

esellier avatar Dec 03 '25 10:12 esellier

BUDI-9950

linear[bot] avatar Dec 03 '25 10:12 linear[bot]

Hey @esellier - thanks for raising this. I think there's a discussion to be had about how to handle this.

There is also a key on the collect data step of "Success" which is a boolean. Perhaps having a "Continue-if" action in your flow would handle this, where the actions continue if the Collect Data step's success value is True.

mikesealey avatar Dec 09 '25 12:12 mikesealey

I would expect this to return either null or undefined - so, just use an if....else :)

mjashanks avatar Dec 11 '25 16:12 mjashanks

returning {success:false} would be fine. but again this is a minor issue... as you say, we can check the undefined

esellier avatar Dec 11 '25 17:12 esellier