I have a “Send to Accountant” function that should be triggered automatically, and can also be triggered by button.
Currently there are two solutions:
Same rule logic and setup both on button and on rules. (Not ideal due to maintainance)
Trigger when a checkbox is checked, and button checks a checkbox. Then the button just checks the checkbox. (Not ideal as the rule turns off after 5 errors, and also errors from the rule are not seen by users.)
I think this would solve it (your automation could ‘press’ the button).
If you use the network inspector, you can probably reverse engineer the (unofficial and not guaranteed to remain stable) API call that causes a button to be pressed
set up an automation rule with the appropriate trigger, where the only action in the automation is to press the button
If a user presses the button, and an error in the action occurs, they should see a warning.
If the automation presses the button, and an error occurs, then there is no-one to see the error anyway(!)
If the error is something downstream (like your email service rejecting large files) then I don’t think Fibery can catch this error no matter what.
In this scenario I would need to make three buttons, two of which hidden and conditionally “pressed” when the first one is pressed. But this could indeed solve it!!
(just bc of complexity of the “reply” vs non-reply email to keep things in the same thread)