Actions - Automation Result is undefined if automation fails
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.
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.
I would expect this to return either null or undefined - so, just use an if....else :)
returning {success:false} would be fine. but again this is a minor issue... as you say, we can check the undefined